isOnRoad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (global args)
(AGL)
Line 22: Line 22:
|s2= '''isOnRoad''' position |= Syntax
|s2= '''isOnRoad''' position |= Syntax


|p21= position: [[Array]] - format [[PositionATL]] (especially on bridges) |= PARAMETER1  
|p21= position: [[Array]] - format [[PositionAGL]] (especially on bridges) |= PARAMETER1  


|p22= |= PARAMETER2  
|p22= |= PARAMETER2  

Revision as of 15:20, 13 August 2015

Hover & click on the images for description

Description

Description:
Checks if given object or position is on road.
Groups:
Uncategorised

Syntax

Syntax:
isOnRoad object
Parameters:
object: Object
Return Value:
Boolean

Alternative Syntax

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

Examples

Example 1:
_objOnRoad = isOnRoad player;
Example 2:
_posOnRoad = isOnRoad getPosATL player;

Additional Information

See also:
surfaceIsWater

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section