Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

Get OxygenLevel

$
0
0
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" ?

Code:
void Main()
{
  if((((IMyAirVent)GridTerminalSystem.GetBlockWithName("Airvent1")).GetOxygenLevel() == 0.00))
  {...
Get OxygenLevel

Viewing all articles
Browse latest Browse all 645

Latest Images

Trending Articles



Latest Images