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 /Server/PVFunctions/RequestTeamUpdate.sqf | |
| download | a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.gz a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.bz2 a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.zip | |
init
Diffstat (limited to 'Server/PVFunctions/RequestTeamUpdate.sqf')
| -rw-r--r-- | Server/PVFunctions/RequestTeamUpdate.sqf | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
