The DestroyObject()
NWScript command causes the specified object to be destroyed after a specified number of seconds. It does not work on player characters, areas, nor the module itself.
More precisely, this command schedules the object to be destroyed; even if the object is to be destroyed after 0.0 seconds, it will persist as a valid object until the end of the current script's execution (then be destroyed).
Definition[]
void DestroyObject (object oDestroy, float fDelay=0.0
)
object oDestroy
- The object that will be destroyed.
float fDelay
- The number of seconds that will pass before the object is destroyed.