diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:55:04 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:55:04 +0300 |
| commit | b06990293397d4b6d0374097f09d1cc5679216e3 (patch) | |
| tree | 5719922562e317a8083250c178f24376b6692569 /Client/Functions/Client_PreRespawnHandler.sqf | |
| download | a2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.tar.gz a2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.tar.bz2 a2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.zip | |
init
Diffstat (limited to '')
| -rw-r--r-- | Client/Functions/Client_PreRespawnHandler.sqf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Client/Functions/Client_PreRespawnHandler.sqf b/Client/Functions/Client_PreRespawnHandler.sqf new file mode 100644 index 0000000..189fe60 --- /dev/null +++ b/Client/Functions/Client_PreRespawnHandler.sqf @@ -0,0 +1,15 @@ +Private ["_hq","_unit"];
+
+_unit = _this;
+
+(_unit) Call WFBE_SK_FNC_Apply;
+[] ExecFSM "Client\FSM\updateactions.fsm";
+
+Options = _unit addAction ["<t color='#42b6ff'>" + (localize "STR_WF_Options") + "</t>","Client\Action\Action_Menu.sqf", "", 1, false, true, "", "_target == player"];
+
+if (!isNull commanderTeam) then {
+ _hq = (sideJoinedText) Call GetSideHQ;
+ if (commanderTeam == group _unit) then {HQAction = _unit addAction [localize "STR_WF_BuildMenu","Client\Action\Action_Build.sqf", [_hq], 100, false, true, "", "hqInRange && canBuildWHQ && (_target == player)"]};
+};
+
+[sideJoinedText,'UnitsCreated',1] Call UpdateStatistics;
\ No newline at end of file |
