GetRandomPointOnNavVolume()
Get a random point on nav volume. Returns the position if found one, or undefined if not found.
Signature
<flying_ai> GetRandomPointOnNavVolume()
Called on an entity: flying_ai GetRandomPointOnNavVolume(...)
Returns
Returns the position if found one, or undefined if not found.
Example (from Treyarch's docs)
random = self GetRandomPointOnNavVolume()
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.
- GetClosestPointOnNavMesh()Get a point on NavMesh that's closest to the given position within radius.
- IsPointOnNavMesh()Checks if a given point is valid on the NavMesh.
- IsNavVolumeLoaded()Checks whether nav volume is loaded
- NavPointSightFilter()Given an array of navmesh points, filters the array based on navmesh visibility to an origin.
- GetNavMeshTriggersForPoint()Returns a list of the names of navmesh triggers that a given point resides in
- IsUsingNavVolume()Checks whether this entity is using Nav Volume.
- SetSpawnPointRandomVariation()Random value will be added into the spawn point weighting calculation.
- RandomFloatRange()Returns a random floating point number r, where min <= r < max
- RandomInt()Returns a random integer between 0 and max-1 inclusive
- RandomIntRange()Returns a random integer r, where min <= r < max
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).