How to Make AI Enter a Vehicle
Having AI use the vehicles around them can really add something to your mod, map, or whatever. It’s a very simple process using the Flow Graph, and also a good introduction to utilizing the Flow Graph to make your creations more dynamic.
This tutorial is original, but is based off of this video tutorial.
Before you get started….
You will need to open asian_new.xml and vehicles.xml in the DataBase View to get access to all the assets.
- Open up the Archetype Entity section
- Navigate to Vehicles > Land and drag the Asian_LTV onto the view port
- Navigate to Asian_new > Camper\Camp and drag Light_Rifle onto the view port
- With the AI selected, click on Create under the Flow Graph heading
- Name the Flow Graph Group VehicleEnter
- The Flow Graph window should now open
- Right Click on the work space and go to Add Node > Misc > Start and click on that
- A small black dot will appear, use your scroll wheel to zoom in on this - you should now see the following:
- Now go to Add Node > Entity > EntityID
This should appear:
- Now go to Add Node > Vehicle > Enter
This should appear:
- Click on ouput and drag it onto Sync
- Now click on Id and drag it onto VehicleID
- Go back to your view port (leave the Flow Graph window open) and click on the Asian_LTV to select it
- Go back to the Flow Graph window and Right Click on the Choose Entity text and select Assign Selected Entity
You should now have this:
- Select your Light_Rifle AI, and right click on the Choose Entity text under Vehicle:Enter
- Click Assign Selected Entity
- Click on Seat=Any
- Change this value to Driver under the Inputs heading
- Finally go to AI > Generate all navigation
Another great tutorial!
I like these better than video tutorials, so much easier to see whats going on with out pausing and rewinding all the time.
Thanks for the kind words.
I’ll definitely make some video tutorials still, but I’ll make a written counter part to everyone.
I like video tutorials, maybe do both still. Aslong as the videos clear enough to read what your pressing.
Thanks for the tutorial
Nice tutorial! Tip: You should show the full flowgraph in one picture.
Where can I find the work space stuff?
do I hjave to press ok on theflowgraph or what?
when I press ok it comes with totally different looking window..
how to drive car on way point?
help!!! why cant i find step number 4. where is the button “create” under flow graph?
Thanks for any help
on the bottom right of the object panel
Now, that’s all fun and dandy, but what I would really like to see, and would be really helpful, is something detailing the relationships between all the aspects of the, such as Path’s, Waypoints, NavModifiers and such…and a way to fix a problem i’ve been having where if I declare an AI to move to a point inside of a structure, he just starts walking in a certain direction, not toward the point I told him to, and when he gets to a wall, he gets stuck, but keeps walking, not going anywhere, it’s rather annoying. I have a gorgeous map waiting to be populated, and I could really use some help with this.
How do you make an AI follow a patrol path ? and can you make aliens and stuff fight each other and not you ? Thanks for the tutorials by the way, your doing a great job, keep them coming.
And here again! everything works fine but Generate all navigation , when i press it sandbox just shuts down, please help.