Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Save them as timer.sqf in your mission folder\ scripts and activate them with an trigger:
trigger1 :
Name: timer
size 10x10x5
activation: player side
On Act: nul = [] execVM "scripts\timer.sqf";
timer.sqf:
[]spawn
{
_missionTimer = 3600;
while {_missionTimer > 0} do
{
hintSilent format["Time Left: %1", _missionTimer];
_missionTimer = _missionTimer - 1;
sleep 1;
["epicFail", false, 2] call BIS_fnc_endMission;
};
};
But i did´nt know how to stop the timer!
Trigger 1 On Activation: startTime = time;
Trigger 2 On Activation: hint format ["Total Time: %1 seconds", (time - startTime)toFixed 1];