Skip to content

Commit

Permalink
Merge pull request #360 from Wired-Tiger/taskPatrol
Browse files Browse the repository at this point in the history
Update fnc_taskPatrol func header
  • Loading branch information
Killswitch00 committed Jun 6, 2016
2 parents 446455d + b59fdf5 commit 5498c7f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/ai/fnc_taskPatrol.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Optional:
Example:
(begin example)
[this, getmarkerpos "objective1"] call CBA_fnc_taskPatrol
[this, getmarkerpos "objective1", 50] call CBA_fnc_taskPatrol
[this, this, 300, 7, "MOVE", "AWARE", "YELLOW", "FULL", "STAG COLUMN", "this call CBA_fnc_searchNearby", [3,6,9]] call CBA_fnc_taskPatrol;
(end)
Expand All @@ -47,6 +47,11 @@ _position = _position call CBA_fnc_getPos;
[_group] call CBA_fnc_clearWaypoints;

private _this =+ _this;
switch (count _this) do {
case 1 : {_this append [_position, _radius]};
case 2 : {_this pushback _radius};
default {};
};
if (count _this > 3) then {
_this deleteAt 3;
};
Expand Down

0 comments on commit 5498c7f

Please sign in to comment.