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

Apocalypse Rising Rocketeer. More...

#include <dp88_ar_unitScripts.h>

Protected Attributes

int m_nSoldierID
 ID of the infantry unit, since KeyHook doesn't pass an object pointer.
 
int m_nVehicleID
 ID of the flight vehicle, if it is currently in use.
 
time_t m_lastDeploy
 Timestamp of the last deploy event (to restrict usage)
 
bool m_bCanDrive
 Cached value of SoldierGameObj->Can_Drive_Vehicles()
 
Cached Script Parameters

Detailed Description

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

Attached to an infantry unit, this script registers a keyhook that allows the player to toggle flying mode on or off. When flying mode is enabled a flying vehicle preset is spawned and the infantry unit is automatically transitioned into it. Pressing the keyhook again will cause the infantry unit to exit the vehicle, which will then be destroyed.