GSC reference › Built-in
CanClaimNode()
Built-in (engine)
Server
Returns true if the node is unclaimed, false otherwise.
Signature
CanClaimNode(<node>, <team>)
Parameters
| Name | Required? | Details |
|---|---|---|
| node | Required | pathnode to check |
| team | Required |
Returns
Returns true if the node is unclaimed, false otherwise.
Example (from Treyarch's docs)
if ( CanClaimNode( cover, team ) )
Real uses in BO3's scripts
Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.
Related built-ins
- NearClaimNode()Determine whether this actor is near its claim node.
- NearClaimNodeAndAngle()Determine whether this actor is near its claim node and nearly matches the angle.
- GetNode()Gets a node with the given name, key pair
- GetVehicleNode()Gets a vehicle node with the given name, key pair
- GetNodeArray()Gets an array of nodes that have the given name, key pair
- SetEnableNode()Disables or enabled this node.
- GetNodesInRadius()Gets all of the nodes (max of 256) within a cylinder, in unsorted order
- PositionQuery_Filter_InClaimedLocation()Check if the locations are inside other sentients claimed locations <entity>.inClaimedLocation.
- GetAllNodes()Gets all of the nodes in a level
- setgoalnode()Set this AI 's goal.
- IsAtCoverNodeStrict()Returns true/false if actor is at cover node.
- GetNearestNode()Returns the node nearest to this origin or undefined if no close node exists.
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).