How to destroy objects?
#1

How to destroy all objects that have been created in a filterscript, when the filterscript is unloaded?
Reply
#2

The object is deconstructed by default on OnFilterScriptExit. You don't need to deconstruct it.
Reply
#3

shoot it with a minigun
Reply
#4

Lol'd! If there is a building (object) how is it possible to destroy it with a minigun
Reply
#5

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
Reply
#6

hmmmmmm this actually gave me a nice idea

Excuse me gentleman, evil henry has a script to make
Reply
#7

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
Reply
#8

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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)