Jump to content

Photo

open 2 state activator with terminal using papyrus fragments

papyrus fragments terminal with 2 state activator

  • Please log in to reply
37 replies to this topic

#21
LoneRaptor

LoneRaptor

    Old hand

  • Supporter
  • PipPipPip
  • 642 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



#22
falloutfan11

falloutfan11

    Regular

  • Supporter
  • PipPip
  • 64 posts

should i replace it with another script or leave it blank?



#23
LoneRaptor

LoneRaptor

    Old hand

  • Supporter
  • PipPipPip
  • 642 posts

you should be able to just leave it blank.



#24
falloutfan11

falloutfan11

    Regular

  • Supporter
  • PipPip
  • 64 posts

so i tried to leave it blank but that didn't seem to work so i re added it:P, i wonder if i can link it to a button and if i can activate the button from terminal because it works fine with buttons?! and thank you for helping, ive been at this for last 2 days lol



#25
LoneRaptor

LoneRaptor

    Old hand

  • Supporter
  • PipPipPip
  • 642 posts

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, 18 November 2016 - 10:20 PM.


#26
falloutfan11

falloutfan11

    Regular

  • Supporter
  • PipPip
  • 64 posts

BLDGMetalGarageDoor i have it as BLDGMetalGarageDoorComAUBFO42b



#27
LoneRaptor

LoneRaptor

    Old hand

  • Supporter
  • PipPipPip
  • 642 posts

For me even that door works using the terminal. If you want I can send you my test esp and scripts.



#28
falloutfan11

falloutfan11

    Regular

  • Supporter
  • PipPip
  • 64 posts

so what did you do step by step if you don't mind?



#29
falloutfan11

falloutfan11

    Regular

  • Supporter
  • PipPip
  • 64 posts

are you literaly just puting 

 

ArmoryDoor.SetOpen()

 

and that's it and its working?

 

(ArmoryDoor) is my name for the property



#30
LoneRaptor

LoneRaptor

    Old hand

  • Supporter
  • PipPipPip
  • 642 posts

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, 18 November 2016 - 10:45 PM.






Also tagged with one or more of these keywords: papyrus, fragments, terminal, with, 2 state activator

Page loaded in: 1.083 seconds