Tankbuster
Some roadobjects will return false when using this command. invisibleroadway_square_f.p3d is found by the nearRoads command, yet will return false for isOnRoad.
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Checks if given position is inside road segment. Same as roadAt, only return is boolean instead of road object.
isOnRoad position
Parameters:
position: Object or PositionAGL (especially on bridges) or Arma 3 v2.00 Position2D, in which case Z will be automatically deduced as the height of the road surfaceReturns: Boolean
_objOnRoad = isOnRoad player;
_posOnRoad = isOnRoad ASLToAGL getPosASL player;
nearRoads · roadsConnectedTo · roadAt · surfaceIsWater · getRoadInfo · nearestTerrainObjects
Some roadobjects will return false when using this command. invisibleroadway_square_f.p3d is found by the nearRoads command, yet will return false for isOnRoad.