GSC reference › Built-in
IsUsingNavVolume()
Built-in (engine)
Server
Checks whether this entity is using Nav Volume. Note this is a relatively low level check. For general gameplay check whether an entity is flying, consider using IsAirborne.
Signature
IsUsingNavVolume(<entity>)
Parameters
| Name | Required? | Details |
|---|---|---|
| entity | Required | An entity object |
Example (from Treyarch's docs)
if ( IsUsingNavVolume( gun_owner ) ) ...
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
- GetClosestPointOnNavVolume()Get a point on nav volume that's closest to the given position within radius.
- IsPointInNavVolume()Checks if a given point is within the specified navigation volume.
- IsNavVolumeLoaded()Checks whether nav volume is loaded
- GetRandomPointOnNavVolume()Get a random point on nav volume.
- GetClosestPointOnNavMesh()Get a point on NavMesh that's closest to the given position within radius.
- PositionQuery_Source_Navigation()Generate points around <origin>, between <minSearchRadius> and <maxSearchRadius> and within <halfHeight> height difference.
- IsPointOnNavMesh()Checks if a given point is valid on the NavMesh.
- SetSoundVolume()Set the sound volume
- ClearGoalVolume()Clears this actor's goal volume.
- setgoalvolume()Set this AI 's goal.
- TracePassedOnNavMesh()Run a trace on NavMesh to see if a character can go straight from start to end.
- GetNavMeshFaceNormal()Returns the face normal vector of the closest navmesh point to the passed in position, within the search 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).