Jump to content
Sign in to follow this  
Psykedeeli

Troops movement

Recommended Posts

Hi. I'm new in Arma 2 and I have used the mission editor just for few hours. I have tried to found answers to my questions by reading this forum (and it has helped a lot) but there is still questions that I'd like to get answers.

I'll use this topic in future if I have something that I need to get answer.

Now I'd like to know how can I get one group to patrol one specific area.. example 200 meters x 200 meters.. So that I'll give them lines and they will follow it until they face enemy and when/if they'll beat the enemy, they will continue patrolling. There might be an easy answer to this, but it doesn't mean that I have found the answer :o

Share this post


Link to post
Share on other sites

Using 2-4 move waypoint and a cycle waypoint (by the first waypoint) should do it.

Share this post


Link to post
Share on other sites

Jakerod is correct (Macgyver FTW). Create a set of waypoints that meet back at the start, eg a loop or something, with the final waypoint being cycle. A cycle waypoint will make the troops continue on to the next closest waypoint, and if that is the start waypoint you will have a continuous patrol.

Share this post


Link to post
Share on other sites

If you want them to randomly patrol you can put "placement radius" on "200", do that for each way-point and every time the mission starts the way-points will be placed randomly.

Share this post


Link to post
Share on other sites

I don't want to create a new topic to ask this stupid question: How can I set a trigger to end the mission after all the enemies are dead? I'm new in missiong editing and these are the most important things that I want to know :P

Edited by Psykedeeli

Share this post


Link to post
Share on other sites

You can also use UPS script from Kronzky (urban patrol script), you only need make marker ex.200x200, and put:

Required parameters:

unit = Unit to patrol area (1st argument)

markername = Name of marker that covers the active area. (2nd argument)

In the init field of group leader you put:

nul=[this,"town"] execVM "ups.sqf"

and they start to patrol marker area random ways.

There are also more parameters you can define:

Optional parameters:

random = Place unit at random start position.

randomdn = Only use random positions on ground level.

randomup = Only use random positions at top building positions.

min:n/max:n = Create a random number (between min and max) of 'clones'.

init:string = Custom init string for created clones.

nomove = Unit will stay at start position until enemy is spotted.

nofollow = Unit will only follow an enemy within the marker area.

delete:n = Delete dead units after 'n' seconds.

nowait = Do not wait at patrol end points.

noslow = Keep default behaviour of unit (don't change to "safe" and "limited").

noai = Don't use enhanced AI for evasive and flanking maneuvers.

showmarker = Display the area marker.

trigger = Display a message when no more units are left in sector.

empty:n = Consider area empty, even if 'n' units are left.

track = Display a position and destination marker for each unit.

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  

×