isOnRoad: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) (alt syntax, example, see also) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Checks if given object or position is on road. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''isOnRoad''' | | '''isOnRoad''' object |= Syntax | ||
|p1= | |p1= object: [[Object]] |= PARAMETER1 | ||
|p2= |= PARAMETER2 | |p2= |= PARAMETER2 | ||
Line 20: | Line 20: | ||
| [[Boolean]] |= RETURNVALUE | | [[Boolean]] |= RETURNVALUE | ||
|s2= '''isOnRoad''' position |= Syntax | |||
|x1= <code> | |p21= position: [[Array]] - format [[getPosATL]] (especially on bridges) |= PARAMETER1 | ||
|p22= |= PARAMETER2 | |||
|p3= |= PARAMETER3 | |||
| r2= [[Boolean]] |= RETURNVALUE | |||
|x1= <code>_objOnRoad = [[isOnRoad]] [[player]];</code>|= EXAMPLE1 | |||
|x2= <code>_posOnRoad = [[isOnRoad]] [[getPosATL]] [[player]];</code>|= EXAMPLE1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[surfaceIsWater]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 22:14, 22 August 2014
Description
- Description:
- Checks if given object or position is on road.
- Groups:
- Uncategorised
Syntax
Alternative Syntax
- Syntax:
- isOnRoad position
- Parameters:
- position: Array - format getPosATL (especially on bridges)
- Return Value:
- Boolean
Examples
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