Survival game issue

Георгий Бабин shared this bug 33 hours ago
Submitted

Hello, engineers!


I've encountered a problem in a survival game with a very simple script. Here's the deal: I have something like an airlock (two doors, air vent, and three button panels). The buttons are set to toggle the vent's state (pressurized/depressurized), so the script turns the door on or off depending on the vent's state (pressurized/depressurized). In creative mode, everything works perfectly. BUT in survival mode something's wrong. The outer door works as expected, BUT the inner door only works while it closed. The door turning off about a second after attempting to open it. Furthermore, pressing the button still toggles the vent and turning on the door, but turning it off after a split second, so it can't be closed while the outer door always remains on. My main game is quite old, and the script used to work. Now it doesn't.


I have airlock in the main game, I recreated it the in a new world now — nothing changed. Please help. Here's the script:

public Program()

{

Runtime.UpdateFrequency = UpdateFrequency.Update10;

}


public void Main(string argument, UpdateType updateSource)

{

IMyAirVent LandingExit = GridTerminalSystem.GetBlockWithName("Air Vent Fan Full") as IMyAirVent;

IMyDoor LandingDoorOut = GridTerminalSystem.GetBlockWithName("Sliding Door") as IMyDoor;

IMyDoor LandingDoorIn = GridTerminalSystem.GetBlockWithName("Sliding Door 2") as IMyDoor;


var LandingExitStatus = LandingExit.Status;


if (LandingExitStatus != VentStatus.Pressurized)

{

LandingDoorOut.ApplyAction("OnOff_On");

LandingDoorIn.ApplyAction("OnOff_Off");

}

else

{

LandingDoorOut.ApplyAction("OnOff_Off");

LandingDoorIn.ApplyAction("OnOff_On");

}

}

Replies (1)

photo
0

Hello,

Thank you for contacting us. Since this is a bug report, I'm moving your ticket to our support page, where our QA team will take care of you.

Kind Regards,

Keen Software House

Leave a Comment
 
Attach a file