From 68d4c9bbd80ed2e6528244569c79676b87295bd1 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:54:45 +0300 Subject: init --- Client/Functions/Client_PreRespawnHandler.sqf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Client/Functions/Client_PreRespawnHandler.sqf (limited to 'Client/Functions/Client_PreRespawnHandler.sqf') 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 ["" + (localize "STR_WF_Options") + "","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 -- cgit v1.3.1