Jump to content
Maff

3DEN: create3DENEntity and Ellipse/Rectangle markers

Recommended Posts


I have been attempting to create ellipse and rectangle "Area" markers with create3DENEntity in the 3DEN Editor (via the Debug Console) for an unhealthy amount of time.

 

I have successfully created each "Icons" markers. Easy!

    _m = create3DENEntity ["Marker", "mil_dot", [0,0,0]];
    _m set3DENAttribute ["Position", (getPosATL player)];
    _m set3DENAttribute ["size2", [2,2]];
    _m set3DENAttribute ["rotation", (random 360)];
    _m set3DENAttribute ["baseColor", "colorRed"];


I just cannot figure out what the "itemClass" would be for either an ellipse or a rectangle.

I have read through the BIKI and experimented with different 3DEN commands to return attributes of existing Area markers but to no joy.
I have also been through the Config Viewer but I cannot seem to find the Area markers in CfgMarkers!

 


The workaround I have been using is to create any "Icons" marker, and edit the mission.sqm.

 

Example:

    dataType="Marker";
    position[]={7003.4668,5,3916.792};
    name="arrowMarker";
    type="mil_arrow";
    a=50;
    b=50;
    id=17;

to...

    dataType="Marker";
    position[]={7003.4668,5,3916.792};
    name="arrowMarker";
    markerType="RECTANGLE";
    type="rectangle";
    a=50;
    b=50;
    id=17;


Of course I could just use the createMarker command in a script but that would be admitting defeat.
I have no issues with using the workaround but I think it is well beyond the time to ask for some MUCH APPRECIATED help.

 

Thank you.

 

 

Edited by Maff
Missing word

Share this post


Link to post
Share on other sites

Sorry mods...

I have just noticed a similar post, this did not show up when I was frantically searching.
 

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×