Initial baseline - KP Liberation v0.96.7a Ruha variant
This commit is contained in:
23
scripts/client/markers/spot_timer.sqf
Normal file
23
scripts/client/markers/spot_timer.sqf
Normal file
@@ -0,0 +1,23 @@
|
||||
createMarkerLocal ["opfor_bg_marker", markers_reset];
|
||||
"opfor_bg_marker" setMarkerTypeLocal "mil_unknown";
|
||||
"opfor_bg_marker" setMarkerColorLocal GRLIB_color_enemy_bright;
|
||||
|
||||
createMarkerLocal ["opfor_capture_marker", markers_reset];
|
||||
"opfor_capture_marker" setMarkerTypeLocal "mil_objective";
|
||||
"opfor_capture_marker" setMarkerColorLocal GRLIB_color_enemy_bright;
|
||||
|
||||
if ( isNil "sector_timer" ) then { sector_timer = 0 };
|
||||
|
||||
while { true } do {
|
||||
sleep 1;
|
||||
if ( sector_timer > 0 ) then {
|
||||
"opfor_capture_marker" setMarkerTextLocal format ["%1",([sector_timer] call KPLIB_fnc_secondsToTimer)];
|
||||
sector_timer = sector_timer - 1;
|
||||
} else {
|
||||
"opfor_capture_marker" setMarkerTextLocal "VULNERABLE";
|
||||
waitUntil{
|
||||
sleep 1;
|
||||
sector_timer > 0
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user