Jump to content
Sign in to follow this  
werzproduction

random patrol

Recommended Posts

Hi, i would like know how to create a group with a random patrol please. (not a random unit starting position)

Share this post


Link to post
Share on other sites

This tutorial still works pretty well.....

 

Share this post


Link to post
Share on other sites

BIS_fnc_taskPatrol

 

CBA_fnc_taskPatrol

Description

A function for a group to randomly patrol a parsed radius and location.
Parameters

Group (Group or Object)

Optional

Position (XYZ, Object, Location or Group)
Radius (Scalar)
Waypoint Count (Scalar)
Waypoint Type (String)
Behaviour (String)
Combat Mode (String)
Speed Mode (String)
Formation (String)
Code To Execute at Each Waypoint (String)
TimeOut at each Waypoint (Array [Min, Med, Max])

Example

[this, getmarkerpos "objective1"] call CBA_fnc_taskPatrol
[this, this, 300, 7, "MOVE", "AWARE", "YELLOW", "FULL", "STAG COLUMN", "this spawn CBA_fnc_searchNearby", [3,6,9]] call CBA_fnc_taskPatrol;

Returns

Nil
Author

Rommel

Share this post


Link to post
Share on other sites

but i want a random patrol in a predefined area and this video the AI patrol not in a predefined area.

Share this post


Link to post
Share on other sites

but i want a random patrol in a predefined area and this video the AI patrol not in a predefined area.

 

Did you even watch the video?

How is patrolling an area with a radius of 100m not a predefined area?

 

Cheers

  • Haha 1

Share this post


Link to post
Share on other sites

I would suggest you stick to BIS_fnc_taskPatrol or the equivalent CBA function.

Random patrols via editor waypoints get quite messy quickly.

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
Sign in to follow this  

×