Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. /*
  2. READ THE FILE NAME!
  3. */
  4. private["_uiDisp","_time","_timer"];
  5. disableSerialization;
  6. 7 cutRsc ["life_nlrtimer","PLAIN"];
  7. _uiDisp = uiNamespace getVariable "life_nlrtimer";
  8. _timer = _uiDisp displayCtrl 38301;
  9. _time = time + (10 * 60);
  10. life_nlrtimer_running = true;
  11. while {true} do {
  12. if(isNull _uiDisp) then {
  13. 7 cutRsc ["life_nlrtimer","PLAIN"];
  14. _uiDisp = uiNamespace getVariable "life_nlrtimer";
  15. _timer = _uiDisp displayCtrl 38301;
  16. };
  17. if(round(_time - time) < 1) exitWith {};
  18. if(life_nlrtimer_stop) exitWith {life_nlrtimer_stop = false;};
  19. _timer ctrlSetText format["NLR: %1",[(_time - time),"MM:SS.MS"] call BIS_fnc_secondsToString];
  20. sleep 0.08;
  21. };
  22. life_nlrtimer_running = false;
  23. 7 cutText["","PLAIN"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement