While nearRoads, roadAt and isOnRoad exists there is no script commands that return the actual road type. typeOf returns "" and as far as I know you can't use isKindOf to check.
Description
Description
Details
Details
- Severity
- Feature
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Scripting
Additional Information
There are solutions like this one: https://forums.bohemia.net/forums/topic/175210-get-road-type/?do=findComment&comment=3223843 though it would be much more preferable to have a script command to return the road type directly, like modifying typeOf to return road types instead of ""
Event Timeline
Comment Actions
If you're talking about getRoadInfo then yeah, looks good. Wondering what 'maptype' is though.