GSC reference › Built-in
AddSpawnPoints()
Built-in (engine)
Server
Adds spawnpoints to the spawn system
Signature
AddSpawnPoints(<team>, <parentID>)
Parameters
| Name | Required? | Details |
|---|---|---|
| team | Required | The team |
| parentID | Required |
Example (from Treyarch's docs)
AddSpawnPoints( "allies", "mp_tdm_spawn" )
Real uses in BO3's scripts
Called 6 times in the decompiled scripts. A few, zombies first:
- scripts/mp/gametypes/_spawning.gsc, line 693
addspawnpoints(team, level.player_spawn_points[team], 0); - scripts/mp/gametypes/_spawning.gsc, line 701
addspawnpoints("free", level.player_spawn_points[team], 0); - scripts/mp/gametypes/_spawning.gsc, line 730
addspawnpoints(team, level.player_fallback_points[team], 1); - scripts/mp/gametypes/_spawning.gsc, line 737
addspawnpoints("free", level.player_fallback_points[team], 1); - scripts/cp/gametypes/_spawning.gsc, line 661
addspawnpoints(team, level.unified_spawn_points[team].b);
Related built-ins
- ClearSpawnPoints()Clears all spawnpoints out of the system
- SetSpawnPointsBaseWeight()If the spawn point is facing the objective position then it will have an additional score applied
- ClearSpawnPointsBaseWeight()Clears the objective base weights set in the spawn points
- QSortScoredSpawnPointsAscending()Sort the scored spawn points in an ascending order
- Spawn()Spawn an entity.
- SpawnStruct()
- SpawnCollision()Spawns a script mover thats used only for collision
- SpawnVehicle()Spawns a new vehicle and returns a reference to it
- GetSpawnerArray()Returns an array of all of the spawners in a level.
- GetPlayerSpawnId()Returns the current spawn id for the player (used for debugging purposes only)
- MaySpawnEntity()
- SpawnFromSpawner()Spawns an actor or vehicle from a spawner, if possible (the spawner won't spawn if the player is looking at the spawn point, or if spawning would...
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).