Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

IsSurvival ?

Discussion in 'Programming (In-game)' started by HellArea, Sep 29, 2018.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. HellArea Trainee Engineer

    Messages:
    26
    It's possible to get game mode?
    May be indirectly from some values.

    I found MyObjectBuilder_SessionSettings, :( prohibited.
     
    Last edited: Sep 29, 2018
  2. Malware Master Engineer

    Messages:
    9,663
    No. The programmable block has no concept of "game" at all. It's a device running on your ship. That's the explicit difference between an ingame script and a mod script.
     
  3. Inflex Developer Staff

    Messages:
    397
    What Malware says is true so thats why we dontdoexpose that info directly.

    Never the less, I think inventories will return either zero or some insane values as their capacity. You should be able to detect game mode based on that knowledge.
     
    • Agree Agree x 1
    • Informative Informative x 1
  4. Ronin1973 Master Engineer

    Messages:
    4,845
    If a ship has a fueled and active reactor, it will be consuming uranium in survival mode. If a battery is set to discharge it will drain in survival mode. I'm not sure if this is useful but they are also possible checks.
     
Thread Status:
This last post in this thread was made more than 31 days old.