GSC reference › Built-in
GetActorSpawnerArray()
Built-in (engine)
Server
Returns an array of all of the actor spawners in a level.
Signature
GetActorSpawnerArray([name], [key])
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Optional | Name to search for. |
| key | Optional | The key to search for. |
Returns
Returns an array of all of the actor spawners in a level.
Example (from Treyarch's docs)
spawners = GetSpawnerArray()
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/cp/gametypes/_battlechatter.gsc, line 38
aispawnerarray = getactorspawnerarray();
Related built-ins
- GetActorSpawnerTeamArray()Returns an array of all of the spawners in a level
- GetSpawnerArray()Returns an array of all of the spawners in a level.
- GetActorTeamArray()Returns an array of the human AI
- GetActorArray()Returns an array of the human AI
- IsActorSpawner()Checks whether this entity is an actor spawner
- GetVehicleSpawnerArray()Returns an array of all of the vehicle spawners in a level
- GetSpawnerTeamArray()Returns an array of all of the spawners in a level
- GetVehicleSpawnerTeamArray()Returns an array of all of the vehicle spawners in a level with the specified team
- array()Create an array
- GetEntArray()Looks up entities by key and name and a return an array of the matched entities
- IsArray()Checks whether this entity/variable is an array
- ArrayRemoveValue()Remove a value from an array (may affect multiple indexes)
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).