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.30 Bug Reporting thread
    Solutions and more information may already be available.

[Question] Can I create a crash point

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by papybrossar, Sep 20, 2019.

  1. papybrossar

    papybrossar
    Expand Collapse

    Joined:
    Jan 11, 2017
    Messages:
    3
    Hi,

    I would like create a crash point between two (or more) vehicles, for example, vehicle A turning right in intersection and vehicle B (wich go straight) crushes the A.

    I have seen the AI scripting in editor, but as the two vehicles are not going at the same speed (vehicle A make a stop before turning), it is very difficult to synchronize them.

    I don't know if this is possible, maybe not :)/), but if it is, in addition to that I don't know how to export my scene out the editor.

    Thank's for any answer and sorry for my bad english (i'am french ^^)
     
    • Informative Informative x 1
  2. danielr

    danielr
    Expand Collapse

    Joined:
    Jan 6, 2014
    Messages:
    81
    Here's an idea how you can do it with ScriptAI.
    1: Setup your whole scene, the 2 cars and their starting positions
    2: Record car B first, so just drive down the road going straight, stop the recording after crossing the intersection
    3: Reset car B back, then pause the whole game/simulation
    4: Press play for car B and record for car A, unpause the game to have car B go down while you record A in the same time
    5: Now watch car B coming down and move car A accordingly to make them crash

    Now you can press play for all cars and since they were recorded at the same time (play and record while paused in step 4) they should pretty much hit each other every time they are restarted.

    What do you mean with export out of the scene? You can save those ScriptAI lines and load them whenever you like. You can even use them in scenarios.
     
  3. papybrossar

    papybrossar
    Expand Collapse

    Joined:
    Jan 11, 2017
    Messages:
    3
    Ok thank's :) i will try this way :)
     
  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