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

Closing door then turning it off

$
0
0
Hello,

I have a script which (eventually) will control airlocks on my ships and stations, but I have come across a problem. As the title suggest, I want to close the doors and then when they are closed, lock them until (de)pressurization have been completed.
Code:
void Main(string argument)
{
    string[] keywords = argument.Split(' ');
    switch (keywords[0])
    {
        case "Depressurize" :
            if (keywords[1] == "Begin")
            {...
Closing door then turning it off

Viewing all articles
Browse latest Browse all 645

Trending Articles