Skip to content

Commit c3b2dd2

Browse files
committed
Fixed UAV Recon timeout stopping script from continuing
Changed mistyped variable name
1 parent cbae623 commit c3b2dd2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/support/mapclickuav.sqf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ _timer = 60;
22
clicked = false;
33

44
// Guard against calling UAV Recon too often
5-
if(support_uav_rec_timeout > 0) exitWith {
6-
["info",["Support is on Cooldown","UAV Recon is on "]] call bis_fnc_showNotification;
5+
if(support_uav_recon_timeout > 0) exitWith {
6+
["info",["Support is on Cooldown",format ["UAV Recon will be ready in %1 seconds", support_uav_recon_timeout]]] call bis_fnc_showNotification;
77
};
88

99
// IF NOT ENOUGH PTS
@@ -25,9 +25,9 @@ sleep 1;
2525
OnMapSingleClick "";
2626

2727
// Tick down timeout guard
28-
support_uav_rec_timeout = 80;
29-
while {support_uav_rec_timeout > 0} do {
28+
support_uav_recon_timeout = 80;
29+
while {support_uav_recon_timeout > 0} do {
3030
sleep 1;
31-
support_uav_rec_timeout = support_uav_rec_timeout - 1;
32-
publicVariable support_uav_rec_timeout;
31+
support_uav_recon_timeout = support_uav_recon_timeout - 1;
32+
publicVariable "support_uav_recon_timeout";
3333
};

0 commit comments

Comments
 (0)