Jump to content
Coladebote

Color change in map markers

Recommended Posts

Hello guys:

A help please.

OPFOR units appear in a map position when the trigger activates the script.

That position must be indicated on the map with a red marker.

When players access the area and eliminate all enemies, the marker changes color, from red to blue.

The problem is that with this instruction "setmarkerColor" the red marker does not appear until the script has been activated and the units appear.

It can be solved by placing an OPFOR unit in the area, but it sure can be done better.

Thanks.

Share this post


Link to post
Share on other sites

if I understand you correctly, will you only create the marker when the trigger has been activated by the player?

Why don't you create the marker in initserver.sqf? (or in a file that is executed by the initserver.sqf)

do you count the life units with a counter and change the color of the marker when all are dead?

Share this post


Link to post
Share on other sites

The problem occurs because in the enemy's military installation the units appear by script. That is, on the map, physically, there is nothing. Therefore, with the instruction "setmarkerColor" the marker will appear blue until the script that makes the enemy units appear at that point is activated. Once there is an enemy presence, the marker changes to red. The problem occurs because, until there is no enemy presence at the point the marker is blue.

Probably, your recommendation is the way to go, but it is something that escapes me.

Thanks.

Share this post


Link to post
Share on other sites

you can with allMapMarkers have all markers issued to you.
then you simply check which marker applies to the mission with the trigger.

I think this is the best way for you.

  • Thanks 1

Share this post


Link to post
Share on other sites

I will advance in that line. I'll keep you informed.

Thanks friend.

Share this post


Link to post
Share on other sites

Problem solved with three triggers.

 

TRIGGER 50 METERS OF RADIO (ACTIVATED BY OPFOR)
call {"ZONE_3" setmarkerColor "ColorRed";
deleteMarker "marker_1";}

 

TRIGGER 50 METERS OF RADIO (ACTIVATED BY OPFOR)
call {"ZONE_3" setmarkerColor "Colorblue";}

 

TRIGGER 50 METERS OF RADIO (ACTIVATED BY OPFOR)
call {"ZONE_3" setMarkerAlpha 1;}

 

THE 3 TRIGGERS IN THE SAME POSITION

 

TWO MARKERS
"marker_1"
"ZONE_3"

 

"marker_1": RED COLOR / 50 METERS OF RADIO
"ZONE_3": RED COLOR / 50 METERS OF RADIO / ALFA 0

 

THE 2 MARKERS IN THE SAME POSITION

 

DEMO MISSION LINK:
https://drive.google.com/open?id=13AiaVjXwTb-C0quBrvCiRxOVcSIjsZOR

 

NOTE:
Eliminate each enemy when you access the area and the marker will change color.

 

Thank you. Greetings from Spain.

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

×