Jump to content
Sign in to follow this  
altis

getMarkerColor from an list

Recommended Posts

I have this in a trigger condition and it works no problem

getMarkerColor "markername" == "ColorGreen";

Thats great for one marker, but is it possible that if i have more than one marker then i can list them in an array and have the trigger condition check the whole array for when any of the markers might turn green, if so what can i put in the condition?

getMarkerColor "_markerarray" == "ColorGreen";

Share this post


Link to post
Share on other sites

This maybe

{getmarkercolor _x  == "ColorGreen"} count  ["markernameone","markernametwo","markernamethree"]  >0

Share this post


Link to post
Share on other sites

That worked no problem! even with 400 markers in the count :D

 

Awesome, really appreciated, i was stuck on that for a while.

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  

×