Page MenuHomeFeedback Tracker

Add script command to get road type
Feedback, NormalPublic

Description

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.

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

dedmen changed the task status from New to Feedback.Tue, Apr 7, 3:26 PM
dedmen added a subscriber: dedmen.

Implemented in Dev-Branch 1.99.146301
Is this sufficient for your needs?