Page MenuHomeFeedback Tracker

nearRoads returns runways which technically are not roads, isOnRoad obj returns false on runways
New, NormalPublic

Description

Runways should not be considered roads. This causes issues when you want to script placement of objects on roads (but not runways).

In fact using IsOnRoad player for a player standing on a runway returns false. So there appears to be inconsistent implementation of what a road is.

Considering JETS DLC, might be useful to have:

  1. nearRoads not return runways OR
  2. Add a new function isOnRunway where you can check if an object or position is on a runway

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Scripting
Steps To Reproduce
  1. Place a player on a runway.
  2. Open debug console
  3. Type in following
{
    private _pos = position _x;
    private _marker = [str(random 1000), _pos, "ICON", [1, 1], "COLOR:", "ColorRed", "TEXT:", str(_foreachindex), "TYPE:","mil_dot"] call CBA_fnc_createMarker;
} foreach (position player nearRoads 200)
  1. Local Exec
  2. View map, see how runway elements are returned as near roads.
  3. Type in the following in Watch:
isonroad player
  1. Result returned is FALSE

Event Timeline

Tupolov created this task.May 8 2017, 1:34 PM
Tupolov updated the task description. (Show Details)