Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fnc_taskPatrol func header #360

Merged
merged 4 commits into from
Jun 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushBack (camelCase)

default {};
};
if (count _this > 3) then {
_this deleteAt 3;
};
Expand Down