roadAt: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (example) |
Killzone Kid (talk | contribs) mNo edit summary |
||
Line 20: | Line 20: | ||
|x2= <code>_isOnRoad = ![[isNull]] [[roadAt]] [[player]];</code>|EXAMPLE2= | |x2= <code>_isOnRoad = ![[isNull]] [[roadAt]] [[player]];</code>|EXAMPLE2= | ||
|x3= For detecting bridges, for example<code>[[getModelInfo]] ([[roadAt]] [[ | |x3= For detecting bridges, for example<code>[[getModelInfo]] ([[roadAt]] [[ASLToAGL]] [[getPosASL]] [[player]])</code>|EXAMPLE3= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 11:32, 23 December 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
- Example 1:
_road = roadAt ASLToAGL getPosASL player;
- Example 2:
_isOnRoad = !isNull roadAt player;
- Example 3:
- For detecting bridges, for example
getModelInfo (roadAt ASLToAGL getPosASL player)
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