17. Creating a Patrol trigger

Make sure you already understand what teamtypes, triggers, taskforces and scripts are before you do this tutorial.

Step 1: Placing the units to patrol

Weīll make a 2 Conscripts and 1 Tesla Trooper patrol. So, place those units close to each other on the map. Give them to the Russians using Change Owner. Make sure they are recruitable by double clicking on each.


Step 2: Placing waypoints

Place one waypoint close to the units. The other one should be placed where you want them to patrol to.


Step 3: Create the taskforce

Create a new taskforce and add 2 Conscripts and 1 Tesla Trooper


Step 4: Create the script

Create a new script. Add the following in exact order:
1. Patrol to waypoint. Set waypoint to the first waypoint you created.
2. Guard Area (timer ticks): 10 time units
3. Patrol to waypoint. Set waypoint to the second waypoint you created.
4. Guard Area (timer ticks): 10 time units
5. Jump to line #: 1


Step 5: Create the teamtype

Create a new teamtype. Select your script and taskforce, and set waypoint to the first waypoint you created. Make sure Autocreate is not checked and Recruiter is checked. Change Owner to Russia.


Step 6: Create the trigger

Create a new trigger. Select owner Russia. Select the event you want to have, for patrols this usually is Any Event. As Action, use Create Team and select your created TeamType.


Thatīs it! Easy, isnīt it?