GSC reference › Built-in
GetNodeArray()
Built-in (engine)
Server
Gets an array of nodes that have the given name, key pair
Signature
GetNodeArray(<name>, <key>)
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Required | name to search for |
| key | Required | key that name goes with |
Returns
pathnode
Example (from Treyarch's docs)
node = GetNodeArray( self.target, "targetname" )
Real uses in BO3's scripts
Called 76 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_blockers.gsc, line 115
node_targets = getnodearray(self.target, "targetname"); - scripts/zm/_zm_zonemgr.gsc, line 432
nodes = getnodearray(barricades[k].target, "targetname"); - scripts/zm/archetype_genesis_keeper_companion.gsc, line 806
var_c9277d64 = getnodearray("flinger_traversal", "script_noteworthy"); - scripts/zm/archetype_zod_companion.gsc, line 830
var_c9277d64 = getnodearray("flinger_traversal", "script_noteworthy"); - scripts/zm/zm_genesis_portals.gsc, line 317
var_1693bd2 = getnodearray(str_areaname + "_portal_node", "script_noteworthy");
Related built-ins
- GetVehicleNodeArray()Gets an array of vehicle nodes that have the given name, key pair
- GetNodeArraySorted()Gets an array of nodes that have the given name, key pair, within given radius, sorts them
- GetAnyNodeArray()Gets an array of nodes within given radius
- GetCoverNodeArray()Gets an array of cover nodes within given radius
- 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
- 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).