summaryrefslogtreecommitdiffstats
path: root/Server/AI/Orders/AI_MoveTo.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:57:23 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:57:23 +0300
commit3533c3aa9393fc6350178b196c813dc636ec9cf6 (patch)
tree2f96a879c3935dea18e73410926b03c7eef1a751 /Server/AI/Orders/AI_MoveTo.sqf
downloada2wf_isladuala-3533c3aa9393fc6350178b196c813dc636ec9cf6.tar.gz
a2wf_isladuala-3533c3aa9393fc6350178b196c813dc636ec9cf6.tar.bz2
a2wf_isladuala-3533c3aa9393fc6350178b196c813dc636ec9cf6.zip
init
Diffstat (limited to '')
-rw-r--r--Server/AI/Orders/AI_MoveTo.sqf17
1 files changed, 17 insertions, 0 deletions
diff --git a/Server/AI/Orders/AI_MoveTo.sqf b/Server/AI/Orders/AI_MoveTo.sqf
new file mode 100644
index 0000000..e372393
--- /dev/null
+++ b/Server/AI/Orders/AI_MoveTo.sqf
@@ -0,0 +1,17 @@
+private ["_destination","_mission","_radius","_team","_update"];
+_team = _this select 0;
+_destination = _this select 1;
+_mission = _this select 2;
+_radius = if (count _this > 3) then {_this select 3} else {30};
+
+_update = true;
+if (side _team == west || side _team == east) then {
+ _update = (_team) Call CanUpdateTeam;
+};
+
+//--- Override.
+if (_update) then {_team Call UpdateTeam};
+
+diag_log Format["[WFBE (INFORMATION)][frameno:%4 | ticktime:%5] AI_MoveTo: The %1 %2 Team is moving to %3",side _team,_team,_destination,diag_frameno,diag_tickTime];
+
+[_team,true,[[_destination, _mission, _radius, 20, "", []]]] Call AIWPAdd; \ No newline at end of file