Gem-Editor/Manual/Chapter 4: Scripting/Chapter 4.1: Waypoints

This tutorial explains how to make a patrol/path. This tutorial explains how to make a simple patrol with 1 soldier

Go to [waypoint] and create a name [Example: Patrol 1]



To make a desired path the entitiy will take click on: Add button. And place a couple on the ground.



This will create some pions. To link them togheter select the 1st waypoint + the 2nd waypoint (hold shift + select them in this sequence). If pressed on link an arrow between the waypoints will appear. If you also do it the other way around by selecting the 2nd waypoint and then the 1st you get a loop patrol between the two points.



To make a wider circle, press on add and link the first 2 waypoints, then place more on the desired places to make your perfect patrol in this case a circle (more or less).



To make a soldier walk this desired path. Go in F3 > entities, select a soldier (or object), write down the MID number.



Then go to triggers; give the trigger a name [Example: Patrol] Select waypoint for the patrol script.





Fill in the mid number of the desired entity (manned vehicle, soldier) and the waypoint where the entity starts to follow the route.

If the patrol/path needs to follow a more specific route in confined space's, lower the radius (circle) of the waypoints. This can be achieved by selecting all waypoints with mouse + shift. Then reconfigure the radius [standard = 200) smaller then 200. Press Start to test the patrol.


 * Note: Copy this for the next individual entity and alter the Mid/waypoint for a more smoother patrol (instead of a block).
 * If you want a group to patrol the same waypoint make a squad, and use the command: "Squad_to_waypoint."