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

#include <jfwdmg.h>

Detailed Description

\ brief Spawns a new object when an object is killed

Author
jonwil

When the object this script is attached to is killed it will spawn a new object at the location it was killed. This is useful for spawning a destroyed version of an object.

Parameters
Drop_ObjectName of the preset to be created when the object is killed
Drop_HeightHeight above the location where the object was killed to spawn the new object, or 0 to spawn it at the same height as the object was killed. Can also be negative. Helps to prevent issues with terrain clipping when the destroyed object has a different origin point
Note
The object the script is attached to must be killed through damage applied to it for this script to work. If the object is simply destroyed (such as by JFW_Destroy_Self_Timer) no object will be spawned.