Call of Duty Script Documentation
spawn(<classname>, <origin>, <flags>, <radius>, <height>)
ModuleSpawn
Summary
Spawns a new entity and returns a reference to the entity
Example
org = spawn("script_origin",self getorigin());
Minimum Number of arguments: 2
1 : <classname> The name of the class to spawn (constant string)
2 : <origin> The position where the entity is to be spawned (vector)
Number of optional arguments: 3
1 : <flags> spawn flags (integer)
2 : <radius> If the entity is a 'trigger_radius' entity then this is the radius of the trigger. Otherwise this parameter is invalid.
3 : <height> If the entity is a 'trigger_radius' entity then this is the height of the trigger. Otherwise this parameter is invalid.
Return to Function List