Search the Community
Showing results for tags 'create3denentity'.
Found 3 results
-
cfgMarkers for ellipse/rectangle one?
pierremgi posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all, I'm trying to script some plain ellipse markers in 3den I have my own module for that. If I use the createMarker command, everything goes well but these markers vanished at preview. Normal. But when I come back to 3den, the markers are no more present. I don't want that. So, I'm trying to use create3denEntity. that means to know what the cfgMarkers class is: _mk = create3DENEntity ["markers", "class", position] The problem is that all available cfgMarkers classes seem to be for iconed markers but not area ones. I tried "system", "ellipse", "", "empty"... Only empty is a defined class, so it's works... for an empty marker. Then I added lines like: _mk set3DENAttribute ["itemClass","ellipse"]; _mk set3DENAttribute ["markerType",1]; _mk set3DENAttribute ["brush","solid"]; Nothing works. The marker remains "empty". Any idea to add a solid area marker by create3denEntity ? Thanks- 10 replies
-
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.
- 1 reply
-
- create3denentity
- marker
-
(and 3 more)
Tagged with:
-
Changing script to work in Debug Console with create3DENEntity
Bosh__ posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I currently have this script (https://pastebin.com/A1eXSFDA) that places a rectangle on each house in the house array, makes it the size of its bounding box and gives it a name M%1. This script works in debug console to add markers but these disappear on mission start This is to work with BMR insurgency and it causes a few problems that the grids are generated every time on mission start. So I was wondering if I could make the grids in 3den using the debug console and create3DENEntity. I've found this script (https://pastebin.com/SURPRMSL) which adds a mil_dot on every building you list however I can't seem to combine the scripts to where I get the results of the first script created within the 3den editor. I'm currently scrambling around this this (https://pastebin.com/yeGBE2L1) but it's not really working. Any help would be great