MAKING A BOT PATROL PATH
BY: Jered
Date: 9-25-00
Caffiene Used: 2 cans
Legal Stuff: Read Bottom

THINGS NEEDED:
The DeusEx SDK
Basic Knowledge of ExEd
Patience

This is a tutorial to make Actors patrol in a certain route. WE will be working with a UNATCO patrol bot, named 'SecurityBot2' in ExEd (UnrealEd). First off, create a map and make sure you have the basics ('PlayerStart', 'DeusExLevelInfo', and use 'Rebuild'. Make sure its a fairly large room. Put a wall right down the middle of it but make sure that there is room for a bot to make it past on both ends.

-----------------------------------------------
| |
| |
| |
| |
| |
| |
| ---------------------------------- |
| --------------wall---------------- |
| |
| |
| |
| |
| |
| |
-----------------------------------------------


Next put in a 'SecurityBot2' (Actor -> Pawn -> ScriptedPawn -> Robot -> SecurityBot2). Open Up its properties (double click it). Under the 'orders' tree there is two things we are concerned with. The first is 'Orders'. This tells what the Actor (Bot in this case) what it should be doing. So far the ones I know are:

Wandering - Actor wanders around aimlessly
Standing - Actor stands in place
Patrolling - Actor follows a set patrol route

The one we are concerned with here is 'Patrolling'. What we want the Bot to do is to make a patrol route of all four corners of the room avoiding the barrier in the middle. So change his orders to 'Patrolling'. The other thing we have to change is the 'Home Tag' Field. change it to 'start' because we wnat him to start when the level loads. The last thing is perhaps the most important. We told him to patrol, but now we have to tell heim what to patrol. This is set under the 'Order Tag' field. Set this field to 'UN_botpath1', which is what we will name our first 'PatrolPoint'. Close the window. Its now time for us to create some patrol points. Create a 'PatrolPoint' (Actor -> NavigationPoint -> PatrolPoint) and place one in each of the four corners of your level. MAKE SURE THEY ARE THE SAME LEVEL! To do this enlarge your 3d window. Hold down the letter 'A' and click on the four corners of the floor. This should create four 'PatrolPoint's and they will all be the same level. THEY MUST BE LEVEL! Our map should look Like this:

-----------------------------------------------
| |
| a bot b |
| |
| |
| |
| |
| ---------------------------------- |
| --------------wall---------------- |
| |
| |
| |
| |
| d c |
| |
-----------------------------------------------

Lets make A,B.C. and D stand for the four patrol points.

Lets start with point A. Bring up the 'PatrolPoints' properties. We need to change several things here. First off we eed to change its name, or 'tag'. This is found under the 'event' tree. This should be called 'UN_botpath1', because it will be the first 'patrolpoint' in the sequence. There is one other thing we need to change as well. Since it would be silly to have a patrol point with only one sequence, we need to tell it where to go next. Under the 'PatrolPoint' tab we need to set the 'Nextpatrol' field to 'UN_botpath2', since this will be the next point. Close the properties on 'PatrolPoint' A and open up 'PatrolPOint' B. Change the smae things except the 'Tag' should be 'UN_botpath2' and the 'Nextpatrol' to 'UN_botpath3'. Close the properties window and open up the properties for 'PatrolPoint' C. Change the 'Tag' to 'UN_botpath3' and the 'NextPatrol' to 'UN_botpath4'. Close the properties and open up 'PatrolPoint' D's properties. Here is where we have a change. Go ahead and change the tag to 'UN_botpath4' but the 'NextPatrol' field will be a little bit different. Since we wnat this to be a loop, we need to set this back to the first 'patrolpoint' which would be 'UN_botpath1'. set that in the 'NextPatrol' field and run your level, making sure to 'rebuild'. Now we have the 'PatrolPoint's in we need to put in 'PathNode's (Actor -> NavigationPoint -> PathNode). Use the same tecnique used to place the 'PatrolPoint's (hold 'A' and click in the 3d window' to place a 'pathnode' between each of the 4 'PatrolPoints'. Now we have to build the paths. Hit 'f8' to bring up your rebuilder box. Click the 'lights' tab. Click 'Paths Define'. Now click on the top of one of the view boxes (the 3d one). and go 'View -> Show Paths' a blue line shoulf now connect all the 'PathNodes' and the 'PatrolPoints'. Your ready to go. If he only wants to walk a couple of points then goes back adjust your point locations until he will. I found i very relaxing o put a GEP gun in the level to shoot the bot if it didn't work. Good Luck!


Webmasters: Feel free to post this tutorial anywhere you wnat just be sure i get and email and a link to where its posted please. Send it to matrixhunter2199@yahoo.com . Feel free to email me if you need help as well. And if you use this tutorial and build a level, please put my name somewhere. Thanks for all that you've done.

"Give us the Tools, and we will build worlds" ~ Jered



------------------
Interior Designer
Thievery UT