GSC reference › Built-in
GetAnyNodeArray()
Built-in (engine)
Server
Gets an array of nodes within given radius
Signature
GetAnyNodeArray(<pos>, <radius>)
Parameters
| Name | Required? | Details |
|---|---|---|
| pos | Required | search origin |
| radius | Required | radius to search within |
Returns
pathnode
Example (from Treyarch's docs)
node = GetCoverNodeArray( self.origin, 256 )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/shared/ai_puppeteer_shared.gsc, line 425
nodes = getanynodearray(level.playercursor[""], 24);
Related built-ins
- GetNodeArray()Gets an array of nodes that have the given name, key pair
- 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
- 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).