Jump to content
BlacKnightBK

Patrol function not working

Recommended Posts

Hello everyone,

I created a simple script that takes an array of groups and then gets those groups tp patrol a marker area. But it is simply not working.

params ["_marker","_groups"];

{
    _x setBehaviour "Safe";
    _x setSpeedMode "LIMITED";
    _x setFormation "COLUMN";
    [_x,getMarkerPos _marker,getMarkerSize _marker] call BIS_fnc_taskPatrol;
}forEach _groups;

Share this post


Link to post
Share on other sites

You could use also the CBA patrol module. It works fine (right now).

Share this post


Link to post
Share on other sites
10 hours ago, Lucullus said:

This question again?

 

look at wiki: BIS_fnc_taskPatrol

 

Distance must be a number, not an array.

 
 

Thank you, i thought marker size was a number i never looked at it's format

Share this post


Link to post
Share on other sites
On April 11, 2017 at 11:47 AM, pierremgi said:

You could use also the CBA patrol module. It works fine (right now).

EEeeek, regardless of how off topic this may be.

I hate CBA dependencies

Share this post


Link to post
Share on other sites
2 hours ago, Midnighters said:

EEeeek, regardless of how off topic this may be.

I hate CBA dependencies

I don't like useless dependencies, but I'm just using the CBA patrol module for my COOP (blue link below). Lazy probably. But I have so much personal scripts, I can make this unique exception.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×