Jump to content

Overseers desk, button?


uberlux

Recommended Posts

I want to make my already functioning overseers desk (via terminal), have a button below the passage so people cant lock themselves down there if dumb enough to run while its closing.

 

Basically, i know that the desk works and everything, i just need to know the script you make for those two-stage buttons (red light, green light ones), I need to set the two stages to open and close the door.

 

Im not sure how to set the different stages of the button to certain scripting lines.

 

Also, is there a way to make the 'open chamber' button on the terminal show up only when its closed.

and the 'close chamber' button to only appear when open? because its weird that both are available while terminal is open?

 

Another thing, does anyone also know how to make a script close a terminal? what i mean, is another thing i made was a crafting station where the terminal had options to use different crafting stations (kitchen, reloading and workbench). Unfortunately, when the crafting menu appears, it keeps the terminal open in the background and the user has to click the red button on the terminal before using the crafting menu. (luckily, you can JUST click the red button, but most inconvenient.

 

for the above problem, i may just make a 'message' appear rather than using a terminal.

Link to comment
Share on other sites

 

Im not sure how to set the different stages of the button to certain scripting lines.

 

Use this code (replace uberluxOverseersDeskREF with the reference ID of the overseer's desk):

begin OnActivate player

	if uberluxOverseersDeskREF.GetOpenState == 3
		uberluxOverseersDeskREF.SetOpenState 1
		SetOpenState 1
	elseif uberluxOverseersDeskREF.GetOpenState == 1
		uberluxOverseersDeskREF.SetOpenState 0
		SetOpenState 0
	endif

end

 

Also, is there a way to make the 'open chamber' button on the terminal show up only when its closed.

Add a condition to the 'Item Conditions' box for each button:

For the open button: GetOpenState == 3

For the close button: GetOpenState == 1

(Both conditions should have the overseer's desk ref ID in the 'Run On' box)

 

 

 

Another thing, does anyone also know how to make a script close a terminal?

You can use ForceTerminalBack to get a terminal to close itself.

Link to comment
Share on other sites

  • 2 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...