Jump to content

get ground position


iwalidza

Recommended Posts

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
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 by The_GTA
  • Thanks 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...