Page MenuHomeFeedback Tracker

Add script command to get road type
Closed, ResolvedPublic

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.Apr 7 2020, 3:26 PM
dedmen added a subscriber: dedmen.

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

If you're talking about getRoadInfo then yeah, looks good. Wondering what 'maptype' is though.

Wondering what 'maptype' is though.

you know, "ROAD", "MAIN ROAD", "TRAIL"

should be on dev

BIS_fnc_KK closed this task as Resolved.May 18 2020, 11:12 PM