1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Stuck, Having problems with creating your mod? Let us help you: Mod Support
  3. The ingame repository is currently offline for maintenance. Downloading and installing the mods manually via our website will still work: Repository
    Dismiss Notice

Force saving states.

Discussion in 'Programming' started by HighDef, Sep 1, 2017.

  1. HighDef

    HighDef
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    344
    I am working on a story campaign and I want to know if you can add a line to force a save state of the vehicles damage at the end of a scenario then load them when starting the next scenario.

    https://www.beamng.com/resources/a-tuners-day-out.2664/

    Also, does anyone know the line I need to add to the scenario .json to get it to put a png in the overview where you click start? I have made an overview map with directions for each part.

    Thanks for your time.
     
  2. HighDef

    HighDef
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    344
    I have worked out how to get a png image at the start of a scenario in the info. Put the png in the scenario folder and add this line to the scenario .html file

    <img src="\levels\***\scenarios\***.png" alt="image" width="100%">
     
  3. HighDef

    HighDef
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    344
    Is there maybe a way of configuring a key command to the action and then at the end of a scenario force that key to be pressed then also force the other key for loading the state after loading the next part?