DestroyObject(); - 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: DestroyObject(); (
/showthread.php?tid=486051)
DestroyObject(); -
Wan - 06.01.2014
Hello.
I have a little question for You, but first of all I'll show You what I've got here:
pawn Код:
for(new i; i<MAX_OBJECTS; i++)
{
if(IsValidObject(i))
DestroyObject(i);
}
And now, the question is:
- Is it going to destroy only objects which are created like this: CreateObject(objectid, ...); or all of them, including Dynamic objects, which are created like this: CreateDynamicObject(objectid, ...); ?
Re: DestroyObject(); -
offon - 06.01.2014
This will only destroy objects created with CreateObject, as you used DestroyObject().
Re: DestroyObject(); -
RedFusion - 06.01.2014
Streamed objects count as player-objects afaik
Re: DestroyObject(); -
Wan - 06.01.2014
Thank You both, You've helped me, a lot.