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

Aircraft Landing Zone Animation. More...

#include <dp88_ar.h>

Detailed Description

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

Plays an animation on the attached object whenever it enters or leaves an aircraft landing zone, designated by the presence of the dp88_Aircraft_LandingZone script. Upon entering a landing zone the landing animation will be played and upon exiting a landing zone the same animation will be played in reverse. This can be used to create a landing gear animation for aircraft.

Optionally the script can also enforce the pilot only exiting the aircraft whilst inside a landing zone if the require_landing_zone parameter is set to 1. This will cause the vehicle and pilot to both be killed if the pilot attempts to leave the vehicle outside of a landing zone.

Note
This script supports overlapping landing zones and will only play the reverse animation once the aircraft has exited all landing zones.
Parameters
landing_anim_nameName of the animation to play upon entering a landing zone (and reverse upon leaving)
landing_anim_first_frameFirst frame number of the landing animation to play
landing_anim_last_frameLast frame number of the landing animation to play
require_landing_zoneWhether to enforce the pilot only exiting inside a landing zone. 1 to enable, 0 to disable
Note
If require_landing_zone is enabled the pilot will be killed if the aircraft is destroyed outside of a landing zone
Precondition
To enforce the pilot exiting the aircraft only inside a landing zone this script requires a warhead named "Death" to be defined in the armor.ini file and for that warhead to be capable of inflicting damage upon both the vehicle and pilot.