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.

IMyAirVent.GetOxygenLevel

Discussion in 'Programming (In-game)' started by Elfi Wolfe, Mar 7, 2018.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Elfi Wolfe Apprentice Engineer

    Messages:
    498
    In Testing
    Creative, Earth-Like -200m sealevel:
    Large Grid returns 0.90
    Small Grid returns 7.2

    Moved both up to 3000m sealevel:
    Large Grid returns 0.90
    Small grid returns 7.2
    ? ? ? ?
    add/remove a block from both large grid and small grid
    Large Grid returns 0.7131
    Small Grid returns 6.267


    So it appears unless a door opens or closes or a block added or removed, the grids do not update GetOxygenLevel
    GetOxygenLevel returns 0-1 with 0.5 is 50%
    Small grid returns well above the upper limit

    /bangs head on keyboard.
    --- Automerge ---
    At sealevel, Creative:
    Large Grid returns 0.8999
    Small Grid returns 7.199

    Fly to 3000m:
    Large Grid returns 0.7832
    Small Grid returns 7.199

    Fly to 6000m
    Large Grid returns 0.5331
    Small Grid returns 7.199

    Fly to 9000m
    Large Grid returns 0.4081
    Small Grid returns 7.199


    At sealevel, survival:
    Large Grid returns 0.8999
    Small Grid returns 7.199

    Fly to 3000m:
    Large Grid returns 0.7832
    Small Grid returns 7.199

    Fly to 6000m
    Large Grid returns 0.5331
    Small Grid returns 7.199

    Fly to 9000m
    Large Grid returns 0.4081
    Small Grid returns 7.199
     
  2. Ronin1973 Master Engineer

    Messages:
    4,801

    Air vents get a little weird in creative considering that oxygen tanks do not need refilling. Have you tried re-running your tests in survival mode? I wouldn't trust creative mode results.
     
  3. Elfi Wolfe Apprentice Engineer

    Messages:
    498
    yes I did.
    "At sealevel, survival:"
     
Thread Status:
This last post in this thread was made more than 31 days old.