Jump to content

open 2 state activator with terminal using papyrus fragments


falloutfan11

Recommended Posts

Is there anything else you need that script on the door itself for, outherwise it might be best to remove it form the door in your cell (not the base object)
The only other thing I can think of whitch you probably have already done but just in case, have you setup your ini files for modding specificly the
sResourceDataDirsFinal=
and bInvalidateOlderFiles=1

Link to comment
Share on other sites

The terminal script should work. What is the editor ID for the door you're trying to use.

Edit: I just ran a quick test on a standard wooden door(ID: BldWoodPDoor02) using a terminal(holotape) and it works for me so mybe the door you're using behaves differently.

Edited by LoneRaptor
Link to comment
Share on other sites

In essense yes

The Fragment I used for the terminal is this:

If IsOpen.GetValueInt() == 0
    DoorToOpen.SetOpen()
    IsOpen.SetValue(1)
ElseIf IsOpen.GetValueInt() == 1
    DoorToOpen.SetOpen(False)
    IsOpen.SetValue(0)
EndIf

I made a terminal, added a menu item Open/Close, added two properties to the script one for the door (ObjectReference) and one for a global variable that acts as a toggle in a slight variation on the script I posted earlier. Then I made that globalvariable (default 0) and filled the properties for both the door and the globalvariable. Then I made a holotape to use the terminal and tested it in game.
Here is the test esp i made and source scripts the doors are in LRTestCell and the holotape is called TestTape.

Edited by LoneRaptor
Link to comment
Share on other sites

  • Recently Browsing   0 members

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