Jump to content

Recommended Posts

Posted

getPosition(self) is the function you need to use.

 

It will return an x,y & z value. Beware though, x is North (lat) and z is East (long), z is height. Confusing! Use as follows:-

 

local player_pos = Unit.getByName('player'):getPosition().p -- 'player' is the name of the object you want the position of

 

player_pos.x has Latitiude &

player_pos.z has longitude values

  • Like 1

i7-7700K : 16Gb DDR4 2800 Mhz : Asus Mobo : 2TB HDD : Intel 520 SSD 240gb : RTX 2080ti: Win10 64pro : Dx10 : TrackiR4 : TM Warthog : ASUS ROG SWIFT PG348Q

Posted
getPosition(self) is the function you need to use.

 

It will return an x,y & z value. Beware though, x is North (lat) and z is East (long), z is height. Confusing! Use as follows:-

 

local player_pos = Unit.getByName('player'):getPosition().p -- 'player' is the name of the object you want the position of

 

player_pos.x has Latitiude &

player_pos.z has longitude values

thx :thumbup::)

member of 06 MHR /  FENNEC Mi-24P

  • Recently Browsing   0 members

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