Left 4 Dead 2/Scripting/Script Functions/ZSpawn: Difference between revisions
< Left 4 Dead 2 | Scripting | Script Functions
Jump to navigation
Jump to search
(Created page with " == Function Description == ''' bool ZSpawn(table ''spawnTable'') ''' Spawns a zombie. This is essentially the z_spawn console command, except (a) you pass a table and (b) n...") |
m (THE OWL moved page List of L4D2 Script Functions/ZSpawn to Left 4 Dead 2/Script Functions/ZSpawn) |
(No difference)
|
Revision as of 08:03, 14 February 2023
Function Description
bool ZSpawn(table spawnTable)
Spawns a zombie. This is essentially the z_spawn console command, except (a) you pass a table and (b) no raycast, you give it the position vector.
Parameters
Type | Name | Description |
---|---|---|
table | spawnTable | Table used for spawn parameters. |
Returns
bool - [Todo]
Input Parameters
Passed to spawnTable to set up the spawn parameters.
Type | Name | Description |
---|---|---|
int | type | Zombie type enumeration. ZOMBIE_WITCH, etc - or the special ZSPAWN_MOB, or WITCHBRIDE, etc. |
Vector | pos | Vector position at which to spawn, optional (defaults to automatically spawn somewhere in the world). |
QAngle | ang | Angle for spawn, optional (defaults to 0,0,0). |