Migow Posted February 18, 2012 Posted February 18, 2012 hi is there any function that give coordinate 's unit?:helpsmilie: member of 06 MHR / FENNEC Mi-24P
Druid_ Posted February 18, 2012 Posted February 18, 2012 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 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
Migow Posted February 18, 2012 Author Posted February 18, 2012 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
Recommended Posts