How to destroy 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: How to destroy objects? (
/showthread.php?tid=313146)
How to destroy objects? -
Gerira Gaijin - 24.01.2012
How to destroy all objects that have been created in a filterscript, when the filterscript is unloaded?
Re: How to destroy objects? - T0pAz - 24.01.2012
The object is deconstructed by default on OnFilterScriptExit. You don't need to deconstruct it.
Re: How to destroy objects? -
milanosie - 24.01.2012
shoot it with a minigun
Re: How to destroy objects? -
Konstantinos - 24.01.2012
Lol'd! If there is a building (object) how is it possible to destroy it with a minigun
Re: How to destroy objects? -
milanosie - 24.01.2012
Quote:
Originally Posted by Dwane
Lol'd! If there is a building (object) how is it possible to destroy it with a minigun 
|
everything is possible with a minigun
Re: How to destroy objects? -
henry jiggy - 24.01.2012
hmmmmmm this actually gave me a nice idea
Excuse me gentleman, evil henry has a script to make
Re: How to destroy objects? -
milanosie - 24.01.2012
Quote:
Originally Posted by henry jiggy
hmmmmmm this actually gave me a nice idea
Excuse me gentleman, evil henry has a script to make
|
Make sure to credit me lololol
Re: How to destroy objects? -
Ash. - 24.01.2012
Quote:
Originally Posted by T0pAz
The object is deconstructed by default on OnFilterScriptExit. You don't need to deconstruct it.
|
Not if using CreateObject.
You'd need to store the object(s) ID(s) in a variable (or an array for multiple objects). This way you can use DestroyObject in a for loop when the script is unloaded (OnFilterScriptExit).