Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
Protected Attributes | List of all members
dp88_AR_Paradrop Class Reference

AR Paradrop. More...

#include <dp88_ar.h>

Protected Attributes

unsigned int earth_warhead
 ID of the "Earth" warhead.
 
int m_nParachuteModel
 ID of the spawned parachute model, if any.
 
float m_fallRate
 Falling speed at last check.
 

Detailed Description

Author
Daniel Paul (danpa.nosp@m.ul88.nosp@m.@yaho.nosp@m.o.co.nosp@m..uk) \arscript

This script can be attached to an infantry unit which can be paradropped, allowing it to survive the impact with the ground and optionally, upon hitting the ground, switch to a new character preset.

Precondition
A preset with the name "Invisible_Object" must exist to allow the parachute model to be created
Note
This script determines an infantry unit has hit the ground when it takes damage from an "Earth" warhead OR it's Z velocity decreases, which is checked at an interval of 1 second.
Parameters
Infantry_PresetOptional. The name of an infantry preset to switch to when the unit hits the ground
Parachute_ModelOptional. The name of a W3D model to spawn on the infantry unit whilst it is falling. This will be removed when the unit hits the ground
Parachute_BoneOptional. The name of a bone on the infantry unit to attach the parachute model to, if any
AnimationOptional. The name of an animation to play on the infantry unit whilst it is falling
Animation_First_FrameThe first frame of the falling animation to play
Animation_Last_FrameThe last frame of the falling animation to play
Animation_LoopedWhether to loop the falling animation