Jump to content
Sign in to follow this  
Skagget

Shifting Markers

Recommended Posts

What I want is to have a area say 200x200 marker radius. When 30 OpFor is in that radius, it will be red. When say 14 OpFor is in that radius it will be orange and if it is no it will be green. Maybe even four stages; Alot, Some, Few and None.

Ive tried some ideas but it didnt work so any good tips on it ? :)

Share this post


Link to post
Share on other sites

well that I figured out is a must, a trigger going for OpFor present Repeat etc.. but the activation must be checking for X number of people I guess. So the question I guess is more how the code/variables for check X amount in a activation tab. Say if 20people is here then setmarkercolor Red and repeat..

Share this post


Link to post
Share on other sites

Set your trigger to repetedly.

Just adjust the number for each condition, i.e. none,low,med,high. etc.

Condition:

(EAST countSide thislist  > [color="Red"]3[/color])

on activation:

"mymarker" setMarkerColor "RED";

Share this post


Link to post
Share on other sites

you can also just use one trigger and a spawn script:

trigger is side present repeated.

on act:

_null = thisTrigger spawn {
while {(count (list _this)) != 0} do {
	_cnt = (count (list _this));
	_color = "ColorGreen";
	if (_cnt >= 30) then {_color = "ColorRed"};
	if (_cnt < 30 AND _cnt > 0) then {_color = "ColorOrange"};
	"mymarker" setMarkerColor _color;
	sleep 1;
};
};

Edited by Demonized
shortened code

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  

×