Units Following Waypoints:1. Create the path in which you want your vehicle to follow with the Waypoint tool. Make sure the loop is complete.
2. Give this waypoint path a label such as "Car1".
3. Place the units you want to follow waypoints onto the map.
4. Give the units a name each in the Object Properties box.
5. Go into the Scripts window through [Edit > Scripts...]
6. Create a new script under PlyrCivilian and give it a name.
7. Make sure the Script Conditions is:
***IF***
True
[This should be the default condition]
6. Go to the "Actions if true" tab and create a new script. Select [Unit > Move > Set a specific unit to follow a waypoint path.]
7. Click "Unit '???'" and select your vehicle (the name you gave it)
8. Do the same for "Waypoint Path '???'" selecting the waypoint you want for the particular unit to follow.
9. Repeat procedures 7 and 8 for the remaining units.
10. Click "OK" and exit out of the Scripts window (Also clicking "OK").
And your unit following waypoint script should be done.
Parts of map not showing:Make sure your border size is set to the appropriate size (Around 20 should be fine).
Edited by user
18 years ago |
Reason: Not specified