getRoadInfo
Jump to navigation
Jump to search
Description
- Description:
- Returns road piece information.
- Groups:
- Roads and Airports
Syntax
- Syntax:
- getRoadInfo road
- Parameters:
- road: Object
- Return Value:
- Array in format [mapType, width, isPedestrian, texture, textureEnd, material, begPos, endPos, isBridge, AIpathOffset], where:
- 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: Array format PositionASL - start of the road segment
- endPos: Array format 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 or on the Forums.
Only post proven facts here! Add Note