braveblades 1 Posted March 24, 2014 Hi, i want to make a mission where player have XX minutes to complete the mission. after this time (XX min) - mission will be terminated with failure, so i try to defined it in init.sqf, but can't sure that is correct. Is this a best approach, or is there a easier implementation? thanks! :) _timeLanded = time; _minsWait = 1; // how long it takes in minutes waituntil {((time - _timeLanded) > (60 * _minsWait) )}; endMission "LOSER"; Share this post Link to post Share on other sites
KC Grimes 79 Posted March 24, 2014 Just looking at it I don't see why it wouldn't work. Are you saying it isn't working, or are you looking for another way to do it? Personally, I would do a similar thing but being done in parallel (via spawn or execVM) and only on the server (isServer) in order to free up the init.sqf. The way you have it, nothing could be below those lines. For your application it may work, but I just don't like that. If you ARE in fact saying it is not working, try it without the 2nd set of parentheses. I know that sounds silly, but waitUntil has a weird sensitivity to parentheses. Share this post Link to post Share on other sites