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

Dynamic Spawner - Vehicle Spawner. More...

#include <dp88_misc.h>

Detailed Description

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

A spawner for use in the Dynamic Spawners set of scripts, this spawner allows the player to spawn inside a vehicle which will be created for them at the location of this spawner.

You can optionally have the vehicle attached to a cinematic upon creation, allowing for a delivery animation or other special features. The vehicle will be immune to damage until the cinematic sends a custom to enable damage events. The vehicle will be attached to the cinematic in slot 0.

Parameters
WeightingThe weighting for this spawner in the controller, higher numbers will favour this spawner over other available spawners. This should be a value between 1 and 10
TeamThe 0 based index of the team which can use this spawner
Vehicle_PresetSpecifies the vehicle preset to spawn for the player. You can use a twiddler here to randomise the vehicle the player spawns with.
Infantry_PresetOptional, specifies an infantry preset to spawn the player. You can use a twiddler here to randomise the infantry unit the player spawns with.
ExclusiveOptional, if you set this to 1 the spawner will be disabled until the player who last spawned at it dies. This is useful for creating single-instance special units or restricting the number of players in an area
CinematicOptional, specifies the name of a Cinematic which will be used to deliver the vehicle
Warning
When using a cinematic you must ensure it sends the custom message 43000 to the vehicle at an appropriate time to allow it to start taking damage. If you do not send this custom the vehicle will permanently be immune to all damage.