Hey guys,
have a question regarding my first selfmade script (using kscript^^)
undependent from the airvent status it passes first two cases and the doors are always off. programm can turn them off if initially on.
edit: i am getting closer, one direction now working. had to remove string argument
maybe a problem with the format of "GetOxygenLevel() == 0.00" ?
Get OxygenLevel
have a question regarding my first selfmade script (using kscript^^)
undependent from the airvent status it passes first two cases and the doors are always off. programm can turn them off if initially on.
edit: i am getting closer, one direction now working. had to remove string argument
maybe a problem with the format of "GetOxygenLevel() == 0.00" ?
Code:
void Main() { if((((IMyAirVent)GridTerminalSystem.GetBlockWithName("Airvent1")).GetOxygenLevel() == 0.00)) {...