Page MenuHomeFeedback Tracker

Marker Entity set3DENAttribute "markerType" locked to icons
Closed, ResolvedPublic

Description

The "markerType" attribute for markers will not change from -1 to 0 or 1 for the creation of areas.

However, the command will switch an area to an icon. (0 or 1 to -1)

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  • Open Debug Console and create a marker with the proper itemClass for a rectangle or ellipse. ex. (_new = create3DENEntity["marker", "rectangle", [worldSize / 2, worldSize / 2, 0]];)
  • Change markers 3DEN attribute "markerType" to the respective number, 0 for rectangle, and 1 for ellipse. ex. (_new set3DENAttribute ["markerType", 0];)
  • Verify change with (_new get3DENAttribute "markerType";) and get a return of -1 representing an icon marker.
Additional Information

Full code to execute together:
_new = create3DENEntity["marker", "rectangle", [worldSize / 2, worldSize / 2, 0]];
_new set3DENAttribute ["markerType", 0];
_new get3DENAttribute "markerType";

Event Timeline

BIS_fnc_KK changed the task status from New to Assigned.
BIS_fnc_KK added a comment.EditedJun 17 2021, 12:32 AM

Fixed in revision: 147769

m = create3DENEntity ["Marker", "", position player]; // default rectangle marker
m set3DENAttribute ["markerType", 1]; //0 - rectangle; 1- ellipse 
m set3DENAttribute ["brush", "DiagGrid"];
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jun 17 2021, 12:32 AM
BIS_fnc_KK changed the task status from Assigned to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
R3vo closed this task as Resolved.Sun, Jul 4, 10:46 AM
R3vo claimed this task.
R3vo added a subscriber: R3vo.

Works.