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.

  1. Open up the Archetype Entity section

    image

  2. Navigate to Vehicles > Land and drag the Asian_LTV onto the view port

    image

  3. Navigate to Asian_new > Camper\Camp and drag Light_Rifle onto the view port

     image

  4. With the AI selected, click on Create under the Flow Graph heading

    image

  5. Name the Flow Graph Group VehicleEnter

    image

  6. The Flow Graph window should now open
  7. Right Click on the work space  and go to Add Node > Misc > Start and click on that

    image

  8. A small black dot will appear, use your scroll wheel to zoom in on this - you should now see the following:

    image

  9. Now go to Add Node > Entity > EntityID

    image

    This should appear:

     image

  10. Now go to Add Node > Vehicle > Enter

    image

    This should appear:

    image

  11. Click on ouput and drag it onto Sync

    image 

  12. Now click on Id and drag it onto VehicleID

    image

  13. Go back to your view port (leave the Flow Graph window open) and click on the Asian_LTV to select it
  14. Go back to the Flow Graph window and Right Click on the Choose Entity text and select Assign Selected Entity

    image

    You should now have this:

    image

  15. Select your Light_Rifle AI, and right click on the Choose Entity text under Vehicle:Enter
  16. Click Assign Selected Entity

    image
  17. Click on Seat=Any

    image

  18. Change this value to Driver under the Inputs heading

    image 

  19. Finally go to AI > Generate all navigation

11 Responses to “How to Make AI Enter a Vehicle”

  1. Another great tutorial! :D I like these better than video tutorials, so much easier to see whats going on with out pausing and rewinding all the time.

  2. Thanks for the kind words. :)

    I’ll definitely make some video tutorials still, but I’ll make a written counter part to everyone. :)

  3. I like video tutorials, maybe do both still. Aslong as the videos clear enough to read what your pressing.

    Thanks for the tutorial

  4. Nice tutorial! Tip: You should show the full flowgraph in one picture.

  5. 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..

  6. how to drive car on way point?

  7. help!!! why cant i find step number 4. where is the button “create” under flow graph?

    Thanks for any help

  8. on the bottom right of the object panel

  9. 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.

  10. 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.

  11. And here again! everything works fine but Generate all navigation , when i press it sandbox just shuts down, please help.

Leave a Reply