Jump to content

Help with activator for door


kagstrom2100

Recommended Posts

As far as the overseers desk, that is even easier. Go to the Overseer's desk, double click, and set the Reference Editor ID to OverseersDeskREF. The name is not important, but I find it easier to name it specifically. Click OK and go to the Overseer's Terminal.

 

Double click and click "Edit Base". Change the ID to something that reflects your custom vault/whatever you're building. Click OK, then click Edit Base again.

 

The name box should be something like "Overseer's Terminal"

 

You can set a password if you'd like.

 

Server type should be: -Server 6-

 

The menu items should be:

Open Overseer's Tunnel

Close Overseer's Tunnel

(whatever else you want here)

 

The close and open will be set up very similarly, so I will only go into detail with the opening option.

 

The Result Text should be "Opening..."

 

The Item Result should read:

OverseerSecretDoorSwitchREF.activate
OverseersDeskREF.setOpenState 1

 

This covers changing the switch in the tunnel entrance itself, as well as opening the desk.

To change this to the closing option, change setOpenState 1 to setOpenState 0.

 

Finally, the most important option:

 

on the item conditions, right click and select NEW

 

Condition Function should be: GetOpenState

Function Parameters: NONE

Comparison: ==

Value: 3.0000

Run On: (whatever your overseers desk is)

 

Click ok

 

The closing conditions should be the same as above, but the Value should be 1.0000.

 

That should be it. If you have any further questions, feel free to ask.

 

Also, something very important. The "Item Result Script" and the Item Conditions will both fail unless the Overseer's Desk has the "Persistent Reference" flag checked

Edited by Foxtrek64
Link to comment
Share on other sites

As far as the overseers desk, that is even easier. Go to the Overseer's desk, double click, and set the Reference Editor ID to OverseersDeskREF. The name is not important, but I find it easier to name it specifically. Click OK and go to the Overseer's Terminal.

 

Double click and click "Edit Base". Change the ID to something that reflects your custom vault/whatever you're building. Click OK, then click Edit Base again.

 

The name box should be something like "Overseer's Terminal"

 

You can set a password if you'd like.

 

Server type should be: -Server 6-

 

The menu items should be:

Open Overseer's Tunnel

Close Overseer's Tunnel

(whatever else you want here)

 

The close and open will be set up very similarly, so I will only go into detail with the opening option.

 

The Result Text should be "Opening..."

 

The Item Result should read:

OverseerSecretDoorSwitchREF.activate
OverseersDeskREF.setOpenState 1

 

This covers changing the switch in the tunnel entrance itself, as well as opening the desk.

To change this to the closing option, change setOpenState 1 to setOpenState 0.

 

Finally, the most important option:

 

on the item conditions, right click and select NEW

 

Condition Function should be: GetOpenState

Function Parameters: NONE

Comparison: ==

Value: 3.0000

Run On: (whatever your overseers desk is)

 

Click ok

 

The closing conditions should be the same as above, but the Value should be 1.0000.

 

That should be it. If you have any further questions, feel free to ask.

 

Also, something very important. The "Item Result Script" and the Item Conditions will both fail unless the Overseer's Desk has the "Persistent Reference" flag checked

 

Hi, Thanx but this is an old topic :P And when I wrote it I didn't know anything about scripting, I'm really good at it now. Thanx again ;)

Edited by kagstrom2100
Link to comment
Share on other sites

  • Recently Browsing   0 members

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