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

Destroys an object by applying damage after a fixed period of time. More...

#include <jfwdmg.h>

Detailed Description

Author
jonwil

This script will apply a specified amount of damage with a specified warhead to the object it is attached to after a specified number of seconds has elapsed.

Note
Although the script name implies it is purely for destroying objects it can also be used to apply a fixed amount of damage with a particular warhead to an object if the specified amount of damage is insufficient to kill the object.
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
AmountAmount of damage to apply to the object the script is attached to
WarheadWarhead to use when applying damage, typically Death is a good choice here