summaryrefslogtreecommitdiffstats
path: root/Client/PVFunctions/M_PLAYERS_Attack_Air.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:55:04 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:55:04 +0300
commitb06990293397d4b6d0374097f09d1cc5679216e3 (patch)
tree5719922562e317a8083250c178f24376b6692569 /Client/PVFunctions/M_PLAYERS_Attack_Air.sqf
downloada2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.tar.gz
a2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.tar.bz2
a2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.zip
init
Diffstat (limited to 'Client/PVFunctions/M_PLAYERS_Attack_Air.sqf')
-rw-r--r--Client/PVFunctions/M_PLAYERS_Attack_Air.sqf28
1 files changed, 28 insertions, 0 deletions
diff --git a/Client/PVFunctions/M_PLAYERS_Attack_Air.sqf b/Client/PVFunctions/M_PLAYERS_Attack_Air.sqf
new file mode 100644
index 0000000..6f14195
--- /dev/null
+++ b/Client/PVFunctions/M_PLAYERS_Attack_Air.sqf
@@ -0,0 +1,28 @@
+Private ['_get','_id','_label','_marker','_task'];
+
+_chopper = _this select 0;
+_label = _this select 1;
+_id = _this select 2;
+
+_get = Format["WFBE_TSK_M_%1%2",_label,_id] Call GetNamespace;
+if !(isNil '_get') exitWith {};
+
+taskHint [format [localize "str_taskNew" + "\n%1",localize 'STR_WF_M_PLAYERS_Attack_Air'], [1,1,1,1], "taskNew"];
+
+_task = player createSimpleTask [Format["TSK_M_%1%2",_label,_id]];
+[Format["WFBE_TSK_M_%1%2",_label,_id],true,true] Call SetNamespace;
+_task setSimpleTaskDescription [localize 'STR_WF_M_PLAYERS_Attack_Air_Description', localize 'STR_WF_M_PLAYERS_Attack_Air', localize 'STR_WF_M_PLAYERS_Attack_Air'];
+_task setSimpleTaskTarget [_chopper, false];
+
+//--- Wait for the result.
+waitUntil {sleep 5; !alive _chopper};
+
+_task setTaskState "Succeeded";
+taskHint [format [localize "str_taskAccomplished" + "\n%1",localize 'STR_WF_M_PLAYERS_Attack_Air'], [1,1,1,1], "taskDone"];
+
+sleep 30;
+
+[Format["WFBE_TSK_M_%1%2",_label,_id],nil,true] Call SetNamespace;
+
+//--- Remove the task & markers.
+player removeSimpleTask _task; \ No newline at end of file