SA-MP Forums Archive
Moving Spawned Objects - 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: Moving Spawned Objects (/showthread.php?tid=342020)



Moving Spawned Objects - urbanghetto - 12.05.2012

Hey everyone,

I updated my SA-MP server to 0.3e today, and I discovered the new editing objects function, it worked pretty well but I got a question about it

I'd like to know if I can move my GM spawned objects (I mean objects created with CreateObject in my Gamemode) with this new function ?

Thanks in advance


Re: Moving Spawned Objects - SuperViper - 12.05.2012

Yes you can.

pawn Код:
new object = CreateObject( ... );
EditObject(playerid, object);



Re: Moving Spawned Objects - urbanghetto - 12.05.2012

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
Yes you can.

pawn Код:
new object = CreateObject( ... );
EditObject(playerid, object);
It would be annoying to do this to all my objects... is there any other way ?


Re: Moving Spawned Objects - SuperViper - 12.05.2012

pawn Код:
SelectObject(playerid);