Jump to content

Recommended Posts

Hello.

 

I am working on a little mission that uses a varible that i have called _time to randomly select a number from the array for a timer with the sleep command in a script.

but right before the sleep i have a hint format command to tell the player.

 

Code: 
_time = [45, 60, 120] call BIS_fnc_selectRandom;
hint format ["All freandly units are KIA. Next avalible unit in: %1 seconds!", _time];

 

This is going to be a mission for more then 1 person and i haven't found out  how to use this on a global stage and i can't seem to get it working with the call BIS_fnc_MP command.

 

Any ideas?

Share this post


Link to post
Share on other sites

Less functions more commands:

_time = selectRandom [45, 60, 120];
format ["All friendly units are KIA. Next available unit in: %1 seconds!", _time] remoteExec ["hint", 0];

remoteExec is the way to go.

Share this post


Link to post
Share on other sites
5 hours ago, 7erra said:

Less functions more commands:


_time = selectRandom [45, 60, 120];
format ["All friendly units are KIA. Next available unit in: %1 seconds!", _time] remoteExec ["hint", 0];

remoteExec is the way to go.

 

Cheers mate. it worked.  🙂

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

×