You might have noticed that the AI isnt very good at navigating buldings or advanced objects, it gets stuck sometimes or just avoid it totally. To get AI to move around inside buldings properly, you gotta make some "rails" or "path" for the AI to follow. Without them, computercontrolled soldiers wont enter your bulding properly.
Also, you might have noticed from the mission editor that some buldings have a number of "positions" that you can place soldiers in. We are gonna have some of that too.
- Make a new LOD and change it to "Paths".
- In top view, place vertrices and make make 4-vertrice planes so that it looks similar to this figure (yes, it might seems strange..but do it anyway). Try to match my figure as good as possible and make sure no planes cross or come too close to the walls (the AI might bump in and get stuck!):
Top view of the path network.
- Use 3d view to make sure that all faces are facing upwards
Top view of the path network in Bulldozer. Make sure all faces are the right way.
- Now we must name some key vertrices on our path network. If you are pretty confused now, think of this network as a pavement or rail network for the AI to walk on. Its the path the AI will follow to ensure that the AI can navigate the bulding without bumping into stuff or get stuck. Now select a vertrice one at a time and name them the labels on the picture below:
Name the vertrices as in picture. Notice we have two entrances and five different positions that the AI can be stationed in. Also the AI should run trough the middle wall door and exit and enter the bulding pretty much ok.
- After that, select the whole path structure and go to front view. Hit shift+E and edit the Y-field to 0.2 to make the path structure hover abit above the floor.
Make the path structure 0.2 m above ground level.
Ok, pretty weird stuff but thats the way its done. The AI should be able to navigate our structure ok now. Im not sure if there is a limit in the number of "pos" and "in" points, so you should be able to add more or less points easily for your own buldings.
If
you got a buidling with a ramp or staircase connecting two floors, you got to
make AI network for both floors if you want the AI to go upstairs. Its just
about creating a second network for the upper floor in a similar fasion, then
connecting them with a sloped face where the staircase or ramp is. This way the
AI can use the stairs too. But we wont go into this in this simple
tutorial.
Now lets get move on. Not much left now...
Back__Home__Next