|
Tiberian Technologies Scripts Reference Revision: 9000
|
Spawns objects randomly in a circle using ray casts to find the ground around the location specified can have scripts attached to the spawned object with JMG_Utility_Basic_Spawner_Attach_Script \Spawn_Preset - Preset to create (can be a twiddler). \WanderingPointGroupID - Group of points to teleport to \SafeTeleportDistance - How far can infantry be moved if the spot is blocked \Spawn_Rate - Rate at which to spawn more objectSpawn_Locations (also used to respawn when an object is killed). \Random_Spawn_Rate - Random amount to add or subtract from the spawn time. \Spawn_At_A_Time - Number of instances of the spawned object can exist at once, for example in a traditional spawner only 1 can exist at a time. \Max_Total_Spawned - How many times can objects be spawned before being disabled, -1 means no limit. \Initial_Spawn - Setting the value to -1 will spawn the Spawn_At_A_Time on create, any 0 or above will make the objects slowly spawn in at the spawn rate. \Spawned_Object_Script_ID - Set the id for this script, -1 uses default (only use this if you're going to need to manually add spawned objects to this spawner). \Point_Must_Be_In_Pathfind - Requires the created point to be in the pathfind field, if its outside of the field the point will not be created. \Spawn_Group_ID - The spawn group id which these objects belong to, if -1 or 0 the distance will be checked against all spawn groups (-1 adds the objects to a group, 0 does not) \ if the value is above 0 the objects will only be checked against other objects with the same value. \Starts_Disabled - If set to 1 the script won't be able to spawn objects until an Enable_Disable_Custom with a param of 1 is received \Enable_Disable_Custom - Custom used to enable or disable the spawners, if the param is 0 it will be disabled, 1 will attempt to spawn the max, anything else just enables the spawn code \Attach_Scripts_Group_ID - Defines what scripts should be attached with JMG_Utility_Basic_Spawner_Attach_Script (-1 attachs all scripts on the spawn controller that can be attached) \PlayersAddToSpawnAtATime - Each player in game adds to the max number of things this can spawn at a time. More...
#include <jmgUtility.h>