Jump to content
Sign in to follow this  
1para{god-father}

Countdown timer on map ?

Recommended Posts

Is there a way to have a marker on the map but use this marker with a coundown timer i.e show on the map a countdown from say 10min ? that eveyone can see in MP on hosted server ?

Thought someone might have something out there already ?

Share this post


Link to post
Share on other sites

This will show minutes until there's only 1 minute left, it will then switch to seconds... Server side with global effects, so it will be 100% sync in mp.

if (isServer) then {

_Timer = 600;

while {_Timer > 60} do {
	"Your marker" setMarkerText format["minutes left: %1", (_Timer / 60)];
	_Timer = _Timer - 60;
	sleep 60;
};

while {_Timer > 0} do {
	"Your marker" setMarkerText format["seconds left: %1", _Timer];
	_Timer = _Timer - 1;
	sleep 1;
};

"Your marker" setMarkerText format["countdown over"];
};

Written just for you :D

Share this post


Link to post
Share on other sites
This will show minutes until there's only 1 minute left, it will then switch to seconds... Server side with global effects, so it will be 100% sync in mp.

if (isServer) then {

_Timer = 600;

while {_Timer > 60} do {
	"Your marker" setMarkerText format["minutes left: %1", (_Timer / 60)];
	_Timer = _Timer - 60;
	sleep 60;
};

while {_Timer > 0} do {
	"Your marker" setMarkerText format["seconds left: %1", _Timer];
	_Timer = _Timer - 1;
	sleep 1;
};

"Your marker" setMarkerText format["countdown over"];
};

Written just for you :D

Hmmmm might be me but i cannot get it to work ?

placed a marker named it test1

change the code to test1 then place a trigger with a radio call and started the script.

I put a hint in the script just after if (isServer) then { - and i get the hint but nothing else no timer where teh marker is ?

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  

×