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

Change Spawn Character. More...

#include <jfwmisc.h>

Detailed Description

Author
jonwil

Sets the spawn character preset for a team to the specified infantry preset. To set the spawn character for a map this script should be attached to an editor only object such as a daves arrow and one copy of that object should be placed on the map. To modify the spawn character for both teams simply add two copies of this script to that object.

It is possible to modify the spawn character at any point during the game by causing a copy of this script to be created, for example by using JFW_Attach_Script_Custom to attach copies of this script to an object at runtime, allowing the spawn character to be changed in response to events that occur during the game.

Parameters
Player_TypeID of the team to set the spawn character of. 0 = Nod / Soviet, 1 = GDI / Allies
CharacterThe name of an infantry preset to use as the teams new spawn character