1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.36 Bug Reporting thread
    Solutions and more information may already be available.

isAIControlled flag not working properly.

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Aerotactics, Dec 23, 2015.

  1. Aerotactics

    Aerotactics
    Expand Collapse

    Joined:
    Dec 23, 2015
    Messages:
    57
    So I loaded up the grid map and followed a tutorial on how to add an AI, which didn't work as intended. We have vehicle A and vehicle B. I want to drive vehicle A and have an AI control vehicle B. I tick vehicle B to have AI, and vehicle A starts being AI controlled. I tick Vehicle A to be AI controlled and Vehicle B starts driving on its own. I simply replace the models of each car to the cars I wanted (a police chase) and then the opposite vehicle becomes AI controlled.

    I gave up trying to make a police chase.
     
  2. Vinh

    Vinh
    Expand Collapse
    Banned

    Joined:
    Nov 15, 2015
    Messages:
    2,975
    So. Maybe you should do this:
    1: Spawn the second vehicle of your choice
    2: Pause physics using ctrl+j
    3: Press tab to go to the vehicle you want to drive
    4: Go to AL and choose "Flee from player" or "Chasing player" if you want the police to chase you.
    5: Resume physics
    6: Let the chase begins!
    These step should work
     
  3. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,085
    isAIControlled is not used for anything, i just looked it up in the code. Its a leftover from T3D times
     
  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