getRoadInfo: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
BrettMayson (talk | contribs) mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 16: | Line 16: | ||
|p1= road: [[Object]] | |p1= road: [[Object]] | ||
|r1= [[Array]] | |r1= [[Array]] with [mapType, width, isPedestrian, texture, textureEnd, material, begPos, endPos, isBridge, AIpathOffset] | ||
* mapType: [[String]] - road segment type, could be {{hl|"HIDE"}}, {{hl|"ROAD"}}, {{hl|"MAIN ROAD"}}, {{hl|"TRACK"}}, {{hl|"TRAIL"}} (see [[nearestTerrainObjects]]) | * mapType: [[String]] - road segment type, could be {{hl|"HIDE"}}, {{hl|"ROAD"}}, {{hl|"MAIN ROAD"}}, {{hl|"TRACK"}}, {{hl|"TRAIL"}} (see [[nearestTerrainObjects]]) | ||
* width: [[Number]] - road segment width | * width: [[Number]] - road segment width | ||
| Line 23: | Line 23: | ||
* textureEnd: [[String]] - road segment surface texture | * textureEnd: [[String]] - road segment surface texture | ||
* material: [[String]] - road segment surface material | * material: [[String]] - road segment surface material | ||
* begPos: | * begPos: [[Position#PositionASL|PositionASL]] - start of the road segment | ||
* endPos: | * endPos: [[Position#PositionASL|PositionASL]] - finish of the road segment | ||
* isBridge: [[Boolean]] - when [[true]] road segment is a bridge | * isBridge: [[Boolean]] - when [[true]] road segment is a bridge | ||
* {{GVI|arma3|2.12|size= 0.75}} AIpathOffset: [[Number]] - config value of `AIpathOffset` | |||
|x1= <sqf> | |x1= <sqf> | ||
Latest revision as of 11:03, 2 January 2026
Description
- Description:
- Returns road piece information.
- Groups:
- Roads and Airports
Syntax
- Syntax:
- getRoadInfo road
- Parameters:
- road: Object
- Return Value:
- Array with [mapType, width, isPedestrian, texture, textureEnd, material, begPos, endPos, isBridge, AIpathOffset]
- mapType: String - road segment type, could be "HIDE", "ROAD", "MAIN ROAD", "TRACK", "TRAIL" (see nearestTerrainObjects)
- width: Number - road segment width
- isPedestrian: Boolean - when true road is for pedestrian use only
- texture: String - road segment surface texture
- textureEnd: String - road segment surface texture
- material: String - road segment surface material
- begPos: PositionASL - start of the road segment
- endPos: PositionASL - finish of the road segment
- isBridge: Boolean - when true road segment is a bridge
2.12 AIpathOffset: Number - config value of `AIpathOffset`
Examples
- Example 1:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note