{"name":"BIS_fnc_taskPatrol","title":"BIS fnc taskPatrol","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_taskPatrol","revid":379512,"updated":"2026-10-31T00:28:37Z","groups":["Tasks"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Create a random patrol of several waypoints around a given position.\n\n> [!NOTE]\n> In Arma 2, the Functions Module is required.","syntaxes":[{"syntax":"[group, position, distance, blacklist] call BIS_fnc_taskPatrol","params":[{"name":"group","type":"Group","description":"the group to patrol","type_expr":"Group"},{"name":"position","type":"Position","description":"the position on which to base the patrol","type_expr":"Position"},{"name":"distance","type":"Number","description":"maximum distance between waypoints in meters","type_expr":"Number"},{"name":"blacklist","type":"Array","optional":true,"description":"blacklist of areas","type_expr":"Array","text":"blacklist: Array - (Optional) blacklist of areas"}],"returns":{"type":"Boolean","type_expr":"Boolean"}}],"examples":[{"code":["[group _unit, getPos _unit, 1000] call BIS_fnc_taskPatrol;"]}],"see_also":["Functions Library","BIS_fnc_taskAttack","BIS_fnc_taskDefend"]}