GSC reference › Built-in
GetActorTeamArray()
Built-in (engine)
Server
Returns an array of the human AI
Signature
GetActorTeamArray(<team>, [team])
Parameters
| Name | Required? | Details |
|---|---|---|
| team | Required | a team name, either 'axis', 'allies', or 'neutral' |
| team | Optional | any number of additional team names may be added, either 'axis', 'allies', or 'neutral' |
Returns
entity
Example (from Treyarch's docs)
aiarray = GetActorTeamArray( "axis", "neutral" )
Real uses in BO3's scripts
Called 13 times in the decompiled scripts. A few, zombies first:
- scripts/zm/zm_castle_ee_side.gsc, line 1339
a_enemies = getactorteamarray("axis"); - scripts/zm/zm_genesis_zombie.gsc, line 186
zombies = getactorteamarray(level.zombie_team); - scripts/zm/zm_zod.gsc, line 411
ai = getactorteamarray("allies"); - scripts/cp/bonuszm/_bonuszm.gsc, line 404
var_e441fa9 = array::get_all_closest(self.origin, getactorteamarray("axis"), array(self), 1, 500); - scripts/cp/bonuszm/_bonuszm_drops.gsc, line 155
var_7a2764e8 = getactorteamarray("axis");
Related built-ins
- GetActorSpawnerTeamArray()Returns an array of all of the spawners in a level
- GetAITeamArray()Returns an array of the human AI and vehicle AI
- GetActorArray()Returns an array of the human AI
- GetVehicleTeamArray()Returns an array of all of the vehicles in a level that are not sentients
- GetActorSpawnerArray()Returns an array of all of the actor spawners in a level.
- GetActorTeamCountRadius()Returns number of human actor AI within a sphere on a given set of teams
- 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).