isOnRoad: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
Lou Montana (talk | contribs) m (Text replacement - "PositionAGL" to "PositionAGL") |
||
Line 21: | Line 21: | ||
|s1= [[isOnRoad]] position | |s1= [[isOnRoad]] position | ||
|p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] (especially on bridges) or (since Arma 3 v2.00) [[Position2D]], in which case Z will be automatically deduced as the height of the road surface | |p1= position: [[Object]] or [[Array]] in format [[Position#PositionAGL|PositionAGL]] (especially on bridges) or (since Arma 3 v2.00) [[Position2D]], in which case Z will be automatically deduced as the height of the road surface | ||
|r1= [[Boolean]] | |r1= [[Boolean]] |
Revision as of 16:52, 5 January 2022
Description
- Description:
- Checks if given position is inside road segment. Same as roadAt, only return is boolean instead of road object.
- Groups:
- Roads and Airports
Syntax
- Syntax:
- isOnRoad position
- Parameters:
- position: Object or Array in format PositionAGL (especially on bridges) or (since Arma 3 v2.00) Position2D, in which case Z will be automatically deduced as the height of the road surface
- Return Value:
- Boolean
Examples
Additional Information
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
- Posted on November 24, 2017 - 21:31 (UTC)
- 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.