AI follow.

Discussion in 'Ideas and Suggestions' started by Anonymau5, Sep 26, 2014.

  1. Anonymau5

    Anonymau5
    Expand Collapse

    Joined:
    Mar 2, 2014
    Messages:
    8
    It would be nice to have an option that would allow you to be followed by an AI vehicle. It would attempt to maintain a certain distance from you (10 meters).
     
  2. go14smoke

    go14smoke
    Expand Collapse

    Joined:
    Oct 9, 2013
    Messages:
    439
    Control+T. It can't maintain a distance, but it will chase you.
     
  3. Anonymau5

    Anonymau5
    Expand Collapse

    Joined:
    Mar 2, 2014
    Messages:
    8
    I've played around with chase, it would be nice to have non-homicidal AI for a change.
     
  4. BaronRedStorm

    BaronRedStorm
    Expand Collapse

    Joined:
    Jul 12, 2014
    Messages:
    817
    1+ On that but i think it would require the path finding thingy for ai so it can actually see you.
     
  5. Chernobyl

    Chernobyl
    Expand Collapse

    Joined:
    Aug 26, 2013
    Messages:
    629
    I would probably be a pain in the arse to code but i see no reason why it is not possible.
     
  6. Atomix

    Atomix
    Expand Collapse

    Joined:
    Dec 15, 2012
    Messages:
    1,349
    Well, so far the Ai is made so that when it is turned on, it will try as hard as it can to get to the middle point of your vehicle, but then there is an option that it will try to get as far from the point as it can. I don't think that coding something to make it keep ~10m distance would be that hard if we alredy have these. No path finding nothing, it would be the same system as now.
     
  7. Anonymau5

    Anonymau5
    Expand Collapse

    Joined:
    Mar 2, 2014
    Messages:
    8
    From a coding standpoint my guess would be it would switch between chase and flee AI at the ~10M with >10M chase and <10M flee. It would be fidgety but it would be a quick and dirty way to try it out.
     
  8. metalmuncher

    metalmuncher
    Expand Collapse

    Joined:
    Aug 6, 2012
    Messages:
    257
    I once modified the chase AI to do something like this. It would try and keep around 10m away from the car, braking if it came too close and increasing a max allowable speed as it got far away so it caught up slowly and didn't rear end the chased vehicle, worked pretty well most of the time.
     
  9. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    do you have those files @metalmuncher ? I would really like to make a train of cars who follow me and drive of something :), and don't crash into me like a police car in GTA V
     
  10. Logi_Veloce

    Logi_Veloce
    Expand Collapse

    Joined:
    Jun 25, 2015
    Messages:
    651
    nice two year bump
     
  11. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    I know, but I was searching for a working AI follow mod today
     
  12. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    The AI works in a very different way compared to the way it did several months ago. His work would likely be useless to you.
     
  13. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    hmm too bad :( , I think I will try to learn the code for it after my exams
     
  14. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    Just FYI, the AI is written in Lua.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice