diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:53:22 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:53:22 +0300 |
| commit | c055d44dcdb87e8db49fb23e632fc086aa44cce6 (patch) | |
| tree | 7ac98d865915930bebc86b36b512a859c31538e5 /Client/Functions/Client_PreRespawnHandler.sqf | |
| download | a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.gz a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.bz2 a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.zip | |
init
Diffstat (limited to 'Client/Functions/Client_PreRespawnHandler.sqf')
| -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 |
