Remote Door ?

Post » Fri May 27, 2011 7:05 pm

How do I make a door that opens or unlocks when you activate an eleteric switch?
User avatar
Camden Unglesbee
 
Posts: 3467
Joined: Wed Aug 15, 2007 8:30 am

Post » Sat May 28, 2011 5:06 am

If you set the door as the switch's http://geck.gamesas.com/index.php/Reference#Linked_Ref, then you can get its refID via http://geck.gamesas.com/index.php/GetLinkedRef in a script attached to the script. You'll probably want to use an http://geck.gamesas.com/index.php/OnActivate block to detect when the switch is flipped, and you can use http://geck.gamesas.com/index.php/Lock/http://geck.gamesas.com/index.php/Unlock to lock or unlock the door, or http://geck.gamesas.com/index.php/SetOpenState to open or close the door.

Cipscis
User avatar
Auguste Bartholdi
 
Posts: 3521
Joined: Tue Jun 13, 2006 11:20 am

Post » Fri May 27, 2011 6:38 pm

Alternatively (if memory serves, it may be wrong about it automatically unlocking) you can just set the switch as the activate parent of the door if you only need to lock/unlock it once to prevent the person from entering early or whatever.
User avatar
Janeth Valenzuela Castelo
 
Posts: 3411
Joined: Wed Jun 21, 2006 3:03 am


Return to Fallout: New Vegas