isOnRoad

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Checks if given position is on road. Same as roadAt, only return is boolean instead of road object.

Syntax

Syntax:
isOnRoad position
Parameters:
position: Object or Array in format PositionAGL (especially on bridges)
Return Value:
Boolean

Examples

Example 1:
_objOnRoad = isOnRoad player;
Example 2:
_posOnRoad = isOnRoad ASLToAGL getPosASL player;

Additional Information

Multiplayer:
-
See also:
nearRoadsroadsConnectedToroadAtsurfaceIsWater

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section