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.

Save car position in a level

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by lucfleclerc, Jan 8, 2023.

  1. lucfleclerc

    lucfleclerc
    Expand Collapse

    Joined:
    Dec 18, 2014
    Messages:
    10
    Hello,

    I would like to spawn cars in a certain way in a map
    I tried with F11 and check the box "Can save"
    It work but when I reload the map the cars are there but not the way I parked them

    Here is a video to show the problem
    If you can help me it'll be really appreciated

    Thank you

     
    • Like Like x 1
  2. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    I think I have the solution. The BeamNG game engine has an odd behavior when the vehicle is saved; the position gets updated correctly, but the rotation gets saved as the original rotation of when the vehicle was spawned or reinitialized in the world. (The same thing happens if you try to do obj:getRotation() in code, it gives the original rotation; if I recall, this has happened for years, and it might just be a quirk of how the game engine's object management works.)

    Try either step:
    1 . After you do "can save" for the vehicle, exit the editor, and press Ctrl + Home to save the vehicle's home position, and then Home to load it (you might need to toggle Num Lock). This will fix the rotation. Then, open the editor, and save the level like normal.

    Or:
    2 . In the editor, manually rotate the vehicle. Doing this in the World Editor will force the rotation to be updated. Then you can save the level like normal.
     
    • Like Like x 2
  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