roadAt: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (corrected the wording of a comment) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| '''roadAt''' position |= Syntax | | '''roadAt''' position |= Syntax | ||
|p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] (especially on bridges) |= | |p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] (especially on bridges) |PARAMETER1= | ||
| [[Object]] - road segment or [[objNull]] |= | | [[Object]] - road segment or [[objNull]] |RETURNVALUE= | ||
|x1= <code>_road = [[roadAt]] [[ASLToAGL]] [[getPosASL]] [[player]];</code>|= | |x1= <code>_road = [[roadAt]] [[ASLToAGL]] [[getPosASL]] [[player]];</code>|EXAMPLE1= | ||
|x2= <code>_isOnRoad = ![[isNull]] [[roadAt]] [[player]];</code>|= | |x2= <code>_isOnRoad = ![[isNull]] [[roadAt]] [[player]];</code>|EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[nearRoads]], [[roadsConnectedTo]], [[isOnRoad]], [[surfaceIsWater]] |= | | [[nearRoads]], [[roadsConnectedTo]], [[isOnRoad]], [[surfaceIsWater]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:36, 7 April 2019
Description
- Description:
- Returns road segment at given position, objNull otherwise. Same as isOnRoad only returns the actual road object instead of boolean.
- Groups:
- Uncategorised
Syntax
- Syntax:
- roadAt position
- Parameters:
- position: Object or Array in format PositionAGL (especially on bridges)
- Return Value:
- Object - road segment or objNull
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
[[Category:Introduced with A3 version 1.58]][[ Category: A3: New Scripting Commands | ROADAT]][[ Category: A3: Scripting Commands | ROADAT]]