Luft08 27 Posted June 6, 2020 When I run the following code the marker is created at [0,0,0] instead of the position specified: private _marker = createMarker["southForestMarker", [8926.676,5542.027, 0]]; southForestMarker setMarkerShape "RECTANGLE"; southForestMarker setMarkerAlpha 0; southForestMarker setMarkerSize [6000,6000]; southForestMarker setMarkerDir 0; I can move the marker with: southForestMarker setMarkerPos [8926.676,5542.027, 0]; But I don't understand why I need to do that. Share this post Link to post Share on other sites
Harzach 2518 Posted June 6, 2020 _marker = createMarker ["southForestMarker", [8926.676,5542.027]]; //z coord is unnecessary unless you need to pass it to another command _marker setMarkerShape "RECTANGLE"; _marker setMarkerSize [6000,6000]; _marker setMarkerAlpha 0; _marker setMarkerDir 0; No reason not to stick with the handle when creating the marker. Regardless, you need to put marker names in quotes, always. This does nothing: southForestMarker setMarkerShape "RECTANGLE"; southForestMarker setMarkerAlpha 0; southForestMarker setMarkerSize [6000,6000]; southForestMarker setMarkerDir 0; Your original code corrected: private _marker = createMarker ["southForestMarker", [8926.676,5542.027, 0]]; "southForestMarker" setMarkerShape "RECTANGLE"; "southForestMarker" setMarkerAlpha 0; "southForestMarker" setMarkerSize [6000,6000]; "southForestMarker" setMarkerDir 0; 1 Share this post Link to post Share on other sites
killzone_kid 1333 Posted June 8, 2020 southForestMarker is variable which is undefined "southForestMarker" is the reference to the marker you created Share this post Link to post Share on other sites