GSC reference › Built-in
GetCoverNodeArray()
Built-in (engine)
Server
Gets an array of cover nodes within given radius
Signature
GetCoverNodeArray(<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/cp/cp_prologue_dark_battle.gsc, line 856
a_nodes = getcovernodearray(self.origin, 192);
Related built-ins
- GetNodeArray()Gets an array of nodes that have the given name, key pair
- IsAtCoverNodeStrict()Returns true/false if actor is at cover node.
- GetVehicleNodeArray()Gets an array of vehicle nodes that have the given name, key pair
- ShouldUseCoverNode()Returns true/false if actor is at is safe at cover node and use it as a cover
- FindBestCoverNodes()Find the best cover nodes for a given NPC given his state.
- IsCoverNode()Returns true if the node is of type NODE_TYPEFLAGS_COVER_ONLY
- IsFlankedAtCoverNode()Returns true/false if actor is at is flanked at cover node
- FindBestCoverNode()Find the best cover node for a given NPC given his state.
- GetNodeArraySorted()Gets an array of nodes that have the given name, key pair, within given radius, sorts them
- IsAtCoverNode()Returns true/false if actor is at cover node.
- ChooseBetterCoverNode()Chooses a better cover node for an ai
- GetAnyNodeArray()Gets an array of nodes within given radius
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).