From 3533c3aa9393fc6350178b196c813dc636ec9cf6 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:57:23 +0300 Subject: init --- Server/PVFunctions/RequestTeamUpdate.sqf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Server/PVFunctions/RequestTeamUpdate.sqf (limited to 'Server/PVFunctions/RequestTeamUpdate.sqf') diff --git a/Server/PVFunctions/RequestTeamUpdate.sqf b/Server/PVFunctions/RequestTeamUpdate.sqf new file mode 100644 index 0000000..892c182 --- /dev/null +++ b/Server/PVFunctions/RequestTeamUpdate.sqf @@ -0,0 +1,26 @@ +private ["_args","_team"]; + +_args = _this; +_team = _args select 0; + +//--- One team. +if (typeName _team == "ARRAY") then { + { + _x setBehaviour (_args select 1); + _x setCombatMode (_args select 2); + _x setFormation (_args select 3); + _x setSpeedMode (_args select 4); + diag_log Format["[WFBE (INFORMATION)][frameno:%6 | ticktime:%7] RequestTeamUpdate: The %1 Team properties has been updated (Behavior: %2 | Combat Mode: %3 | Formation: %4 | Speed Mode: %5)",_x,(_args select 1),(_args select 2),(_args select 3),(_args select 4),diag_frameno,diag_tickTime]; + } forEach _team; +}; + +//--- The whole team. +if (typeName _team == "SIDE") then { + { + _x setBehaviour (_args select 1); + _x setCombatMode (_args select 2); + _x setFormation (_args select 3); + _x setSpeedMode (_args select 4); + } forEach (Format["WFBE_%1TEAMS",str _team] Call GetNamespace); + diag_log Format["[WFBE (INFORMATION)][frameno:%6 | ticktime:%7] RequestTeamUpdate: The %1 Teams properties have been updated (Behavior: %2 | Combat Mode: %3 | Formation: %4 | Speed Mode: %5)",_team,(_args select 1),(_args select 2),(_args select 3),(_args select 4),diag_frameno,diag_tickTime]; +}; \ No newline at end of file -- cgit v1.3.1