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

Help with variable casting - Airlock Pressurize script

$
0
0
I am trying to create one snippet of code that will change which LCDs the ouput is displayed on, based on which Airlock is tasked to Pressurize/Depressurize. Currently, I have this:

Code:
public void Pressurize(int airlockNum)
{
    switch(airlockNum)
    {
        case 1:
            vent = ventOne;
            inDoor = inDoorOne;
            outDoor = outDoorOne;
            light = warnLightOne;
            airlock = "Airlock 1 ";
            inLCDGrp =...
Help with variable casting - Airlock Pressurize script

Viewing all articles
Browse latest Browse all 645

Trending Articles