TheDrunkenSoviet Posted April 14, 2013 Share Posted April 14, 2013 I am trying to make a terminal that controls the silo door from Lonesome Roads Hopeville's silo it works and is fine, but I'm having trouble using the variables that make the options to open and close appear when they need to. I don't want both to be on the screen at the same time but to use variables as follows.. Only display the Open Command when the it is closed.Only display the Close Command when the it is open. And switch the two when its activated. Anyway if that makes sense. Link to comment Share on other sites More sharing options...
jazzisparis Posted April 14, 2013 Share Posted April 14, 2013 You can add a condition to each option, checking whether the door is opened or closed.Use GetOpenState on the door reference. If it equals 1 - the door is open; 3 - the door is closed. Link to comment Share on other sites More sharing options...
TheDrunkenSoviet Posted April 14, 2013 Author Share Posted April 14, 2013 The problem is the Silo door is a unique object and i have to call the PlayGroup with the script Link to comment Share on other sites More sharing options...
jazzisparis Posted April 14, 2013 Share Posted April 14, 2013 I see. Well, in that case:- Create a new global variable.- Have the "Open" option set it to 1; the "Close" option set it to 0.- Use GetGlobalValue as a condition to determine which option should be visible/hidden. Link to comment Share on other sites More sharing options...
TheDrunkenSoviet Posted April 14, 2013 Author Share Posted April 14, 2013 Ok thanks, I'll give that a shot. Btw your Overheating and select fire mods are awesome ! Link to comment Share on other sites More sharing options...
TheDrunkenSoviet Posted April 15, 2013 Author Share Posted April 15, 2013 I've never used globals before how, google don't do anything ! Link to comment Share on other sites More sharing options...
jazzisparis Posted April 16, 2013 Share Posted April 16, 2013 You can add new globals by going to Gameplay>Globals, then right-click, select 'New' and give it a unique name (you can leave the other settings as the are). You can then use that global variable in scripts, exactly as you would use any "local" variable. In conditions (for options in terminals, messageboxes, perk etc.), when you need to check the value of a global variable, you can use GetGlobalValue.I hope that covers it for you. Link to comment Share on other sites More sharing options...
Recommended Posts