Jump to content
Sign in to follow this  
geestyleed

Creating a Marker by trigger - Error :(

Recommended Posts

Hi guys,

I am trying to create a objective marker which is created after the first task is completed, but in Arma 3 I always get an error. This is how the Trigger looks like:

[....]; _Marker2 = createMarker ["Marker2", [1800,5.5,5500]]; "Marker2" setmarkertype "objective"; "Marker2" setMarkerDir -41.4701; "Marker2" setMarkerColor "Red"; "Marker2" setMarkerShape "ICON"; "Marker2" setMarkerSize [1, 1];

There is a Error that Arma 3 doesnt find the icon objective...If I work with a Ellipse...Arma 3 has problem with the colour?

BTW. _Marker2 = createMarker ["Marker2", [1800,5.5,5500]] <- Which one is X, Y, Z Axis? Do I add there the meters on the map?

What am I doing wrong? :(

Thanks guys!

-gee

Share this post


Link to post
Share on other sites

You can't create local variables in triggers, so remove the _. "Objective" isn't a valid markertype, I strongly suggest you use the ingame config viewer and hit up CfgMarkers. Try mil_objective or hd_objective.

Share this post


Link to post
Share on other sites

Thanks! This works. Now the only remaining problem is that red is not a valid colour :D

Share this post


Link to post
Share on other sites

It's "ColorRed". Every color is preceded by the "Color" prefix.

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
Sign in to follow this  

×