roadAt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Killzone Kid (talk | contribs) (corrected the wording of a comment) |
||
Line 45: | Line 45: | ||
<dt class="note">[[User:OOKexOo|OOKexOo]]</dt> | <dt class="note">[[User:OOKexOo|OOKexOo]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
This command does not nessecarly return the closest | This command does not nessecarly return the segment which center is the closest to the given position.<br> | ||
In order to get | In order to get such segment use [[nearRoads]].<br> | ||
<code>_closest_road = (_pos [[nearRoads]] 0.1) select 0;</code> | <code>_closest_road = (_pos [[nearRoads]] 0.1) select 0;</code> | ||
</dd> | </dd> | ||
</dl> | </dl> | ||
<!-- DISCONTINUE Notes --> | <!-- DISCONTINUE Notes --> |
Revision as of 03:28, 31 December 2016
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]]