Signature
GetActorArray([name], [key])
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Optional | Name to search for. |
| key | Optional | The key to search for. |
Example (from Treyarch's docs)
aiarray = GetActorArray( "ralph", "targetname" )
Real uses in BO3's scripts
Called 7 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_devgui.gsc, line 5103
ai = getactorarray(); - scripts/shared/weapons/_weaponobjects.gsc, line 1811
actors = getactorarray(); - scripts/mp/killstreaks/_helicopter.gsc, line 910
actors = getactorarray(); - scripts/mp/killstreaks/_supplydrop.gsc, line 2574
actors = getactorarray(); - scripts/mp/mp_nuketown_x.gsc, line 101
actors = getactorarray();
Related built-ins
- GetActorTeamArray()Returns an array of the human AI
- 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
- 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)
- GetAITeamArray()Returns an array of the human AI and vehicle AI
- IsActor()Checks whether this entity is an ai character
- GetArrayKeys()Returns an array consisting of the keys of the input array.
- ArrayCombine()Combine two arrays into and returns one new array
- IsInArray()Searches an array to determine if a given value is present in that 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).