GSC reference › Built-in
GetVehicleSpawnerArray()
Built-in (engine)
Server
Returns an array of all of the vehicle spawners in a level
Signature
GetVehicleSpawnerArray([name], [key])
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Optional | Name to search for. |
| key | Optional | The key to search for. |
Example (from Treyarch's docs)
enemies = GetVehicleSpawnerArray( "bob", "targetname" )
Real uses in BO3's scripts
Called 4 times in the decompiled scripts. A few, zombies first:
- scripts/shared/vehicle_shared.gsc, line 123
a_all_spawners = getvehiclespawnerarray(); - scripts/cp/cp_mi_zurich_coalescence_util.gsc, line 2985
a_sp = getvehiclespawnerarray(str_spawner, str_key); - scripts/cp/cp_mi_zurich_newworld_rooftops.gsc, line 5260
var_dc7c1178 = getvehiclespawnerarray(str_script_noteworthy, "script_noteworthy"); - scripts/cp/cp_sh_cairo.gsc, line 121
a_sp_vtols = getvehiclespawnerarray("ambient_vtol", "targetname");
Related built-ins
- GetVehicleSpawnerTeamArray()Returns an array of all of the vehicle spawners in a level with the specified team
- GetSpawnerArray()Returns an array of all of the spawners in a level.
- GetVehicleArray()Returns an array of all of the vehicles in a level
- GetVehicleNodeArray()Gets an array of vehicle nodes that have the given name, key pair
- GetVehicleTeamArray()Returns an array of all of the vehicles in a level that are not sentients
- IsVehicleSpawner()Checks whether this entity is a vehicle spawner
- GetActorSpawnerArray()Returns an array of all of the actor spawners in a level.
- GetActorSpawnerTeamArray()Returns an array of all of the spawners in a level
- GetSpawnerTeamArray()Returns an array of all of the spawners in a level
- 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
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).