Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
List of all members
JFW_Destroy_Self_Timer Class Reference

Destroys an object after a fixed period of time. More...

#include <jfwdmg.h>

Detailed Description

Author
jonwil

This script will destroy the object it is attached to after a specified number of seconds has elapsed.

Warning
Because the object is destroyed (by using ScriptCommands::Destroy_Object()) rather than killed by damage the GameObjObserverClass::Killed() callback will not be trigger for any other scripts attached to the object, which may cause unexpected behaviour. If you need to ensure the callback is executed consider using JFW_Timer_Destroy_Object instead.
Parameters
TimeNumber of seconds to wait before triggering
TimerNumInternal ID to use for the timer to avoid clashing with any other timers on the same object