iwalidza Posted January 17, 2022 Share Posted January 17, 2022 how i can get ground position in custom island object getGroundPosition() not work with if Link to comment
The_GTA Posted January 17, 2022 Share Posted January 17, 2022 Hello iwalidza, use the processLineOfSight function manually and pass the "checkObjects" parameter as true. Basically, you should check a vertical line from the sky down to the limit of the internal GTA:SA player reset height. The game does it anyway and getGroundPosition is provided just for convenience. Link to comment
iwalidza Posted January 17, 2022 Author Share Posted January 17, 2022 2 minutes ago, The_GTA said: Hello iwalidza, use the processLineOfSight function manually and pass the "checkObjects" parameter as true. Basically, you should check a vertical line from the sky down to the limit of the internal GTA:SA player reset height. The game does it anyway and getGroundPosition is provided just for convenience. i don't now what parameters to insert in processLineOfSight Link to comment
The_GTA Posted January 17, 2022 Share Posted January 17, 2022 (edited) 4 minutes ago, iwalidza said: parameters to insert in processLineOfSight local is_hit, hitX, hitY, hitZ = processLineOfSight( 0, 0, 5000, 0, 0, -30, true, false, false, true, true, false, false, false, nil, false, false ) if (is_hit) then outputDebugString( "hitZ: " .. hitZ ) end Edited January 17, 2022 by The_GTA 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now