isOnRoad: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (AGL) |
Killzone Kid (talk | contribs) (see also) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Checks if given | | Checks if given position is on road. Same as [[roadAt]], only return is boolean instead of road object. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''isOnRoad''' | | '''isOnRoad''' position|= Syntax | ||
|p1= | |p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] (especially on bridges) |= PARAMETER1 | ||
| [[Boolean]] |= RETURNVALUE | | [[Boolean]] |= RETURNVALUE | ||
|x1= <code>_objOnRoad = [[isOnRoad]] [[player]];</code>|= EXAMPLE1 | |x1= <code>_objOnRoad = [[isOnRoad]] [[player]];</code>|= EXAMPLE1 | ||
|x2= <code>_posOnRoad = [[isOnRoad]] [[ | |x2= <code>_posOnRoad = [[isOnRoad]] [[ASLToAGL]] [[getPosASL]] [[player]];</code>|= EXAMPLE2 | ||
__________________________________________________________________________________________ | |||
| [[surfaceIsWater]] |= SEEALSO | |[[nearRoads]], [[roadsConnectedTo]], [[roadAt]], [[surfaceIsWater]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 20:15, 16 February 2016
Description
- Description:
- Checks if given position is on road. Same as roadAt, only return is boolean instead of road object.
- Groups:
- Uncategorised
Syntax
- Syntax:
- isOnRoad position
- Parameters:
- position: Object or Array in format PositionAGL (especially on bridges)
- 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