diff options
Diffstat (limited to '')
| -rw-r--r-- | Server/AI/Orders/AI_MoveTo.sqf | 17 |
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 |
