SA-MP Forums Archive
Object post help - 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: Object post help (/showthread.php?tid=617361)



Object post help - muhsah007 - 20.09.2016

Hello Everyone!
I have a question if i define this in ongamemodeinit then how can i get pos of that object ?
PHP код:
ObjectInfo[0][objID] = CreateDynamicObject(18292474.8232422363.094726, -52.62166900270, .drawdistance 50.0); 



Re: Object post help - Konstantinos - 20.09.2016

pawn Код:
new Float: o_x, Float: o_y, Float: o_z;
GetDynamicObjectPos(ObjectInfo[0][objID], o_x, o_y, o_z);



Re: Object post help - muhsah007 - 20.09.2016

same for Rotations ?


Re: Object post help - FreAkeD - 20.09.2016

Use GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz);

Check the streamer wiki on GitHub out when not sure about all this: https://github.com/samp-incognito/sa...er-plugin/wiki