SA-MP Forums Archive
Get object pos? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Get object pos? (/showthread.php?tid=658028)



Get object pos? - ,TomY' - 21.08.2018

Hey. I have code:

Код:
new Random = random(MAX_HPSPAWNS);
objid=CreateObject(19315 ,Spawns[Random][cX],Spawns[Random][cY],Spawns[Random][cZ],0.0000000,0.0000000,0.9866943);
Now I need to move this object. How to get the position of created object, because here object is creating with random pos.


Re: Get object pos? - m4karow - 21.08.2018

GetObjectPos function or you store the random values into a variable