1. Trouble with the game?
    Try the troubleshooter!

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

    Dismiss Notice

Stop a vehicle from acting as traffic

Discussion in 'General Discussion' started by Richard1029, Dec 17, 2022.

  1. Richard1029

    Richard1029
    Expand Collapse

    Joined:
    Nov 2, 2022
    Messages:
    6
    I want to transport cars while traffic is on. But obviously if I spawn a car on top of my flatbed and spawn traffic, it will too act as a traffic vehicle. Any solution?
     
  2. roland91

    roland91
    Expand Collapse

    Joined:
    Jul 12, 2014
    Messages:
    237
    Spawn and start traffic before spawning a vehicle to transport. That's the way I have been doing it.
     
    • Agree Agree x 3
  3. Richard1029

    Richard1029
    Expand Collapse

    Joined:
    Nov 2, 2022
    Messages:
    6
    Ok thanks
     
  4. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    Yeah, this is probably the best way to do it.

    There is a more advanced method. After spawning vehicles that you don't want as traffic, open the World Editor [F11], select each vehicle, and in the Inspector on the right side of the screen, go down to the bottom and create a new Dynamic Field with a label of "ignoreTraffic" (without quotes), and with a value of "true" (without quotes). This should prevent it from being used in the traffic system.

    I suppose it would be nice to do this more easily, like, in an app or something.
     
    • Agree Agree x 3
  5. Richard1029

    Richard1029
    Expand Collapse

    Joined:
    Nov 2, 2022
    Messages:
    6
    Yeah, it would be. Anyway, thanks.
     
  6. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,350
    Would be very cool if you could make an app like this, would be useful for police chase gameplay in traffic where the suspect doesn't just disappear when they get away and instead you can spawn new cop cars to continue the pursuit
     
    • Agree Agree x 1
  7. Richard1029

    Richard1029
    Expand Collapse

    Joined:
    Nov 2, 2022
    Messages:
    6
    I have found a way where you can do realistic police chases with traffic. Spawn the car you want to chase and put it in flee. Then spawn traffic.
     
  8. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,350
    But then when the car gets stuck somewhere and you need to drive it manually for a while (which happens all the time since the AI is very dumb in flee mode), you would have to despawn traffic, then stop all AI, drive the car, put in flee, respawn traffic. A lot of hassle.
     
  9. Richard1029

    Richard1029
    Expand Collapse

    Joined:
    Nov 2, 2022
    Messages:
    6
    Yeah, there are still a lot of problems with it. It still would be nice if an app was created.
     
    • Agree Agree x 1
  10. shinchanf1

    shinchanf1
    Expand Collapse

    Joined:
    Nov 12, 2019
    Messages:
    1,011
    I don't see it this way. it's quite the opposite, the flee mode ai slows down to make turns, avoids other cars well enough, and rarely crashes. the chasing ai, though? overshooting turns, crashing into other vehicles, and wrecks its car within a few minutes. chase AI seemed to have gotten overly dumb with the latest updates.
    Also, if the fleeing car gets stuck, use free camera, hover the camera over the open path, then spawn the car at the camera. there's a special binding you have to map for the one without resetting the car. no need to drive manually.

    answering OP's question,
    1. go to UI apps
    2. add the AI manager app
    3. switch to the traffic car you want to disable(remember to tick the associated option in the options menu)
    4. select AI mode
    5. set to disabled
    easy as that.
     
    • Agree Agree x 2
  11. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,350
    Oh right I forgot that the teleport now keeps the damage AND sets new rotation. That works then.
     
  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