Jump to content

Script for opening 2 doors with 1 switch


Chrophiss

Recommended Posts

Okay so i'm trying to create a double door for the vaultdoorsliding. With some improvisation i hope to create a double door which i always missed in the default vault creation kit (parts).

 

So what i need is one switch to open and close two doors at same time. I'm thinking a script is needed because i cant fit two linked references to the one switch.

How do i go about this? Can someone make me a script? or have an example script available so i can experiment with it myself?

 

thanks,

Chrophiss

Link to comment
Share on other sites

Hi Chrophiss,

 

No script is needed here. First, make sure the switch is a persistent reference. What's left is to open each door's reference box, 'Activate Parent' tab, and then add the switch's reference as an activating parent. For your purpose, you should also check the 'Parent Activate Only' box - this way, the only way to activate the doors will be by using the switch.

Link to comment
Share on other sites

Hi Chrophiss,

 

No script is needed here. First, make sure the switch is a persistent reference. What's left is to open each door's reference box, 'Activate Parent' tab, and then add the switch's reference as an activating parent. For your purpose, you should also check the 'Parent Activate Only' box - this way, the only way to activate the doors will be by using the switch.

 

I learn something new every day.

Link to comment
Share on other sites

Hey thanks for replying,

 

It did not work for me at first, even though the switch i used was an activator. i added the genericswitchactivate script to it and now it works appropriatly.

Thanks for the help!

 

Double vault door looks awesome IMO :), maybe change the open and close sounds to make it better, possibly.

 

Thanks again!

Chrophiss

Edited by Chrophiss
Link to comment
Share on other sites

  • Recently Browsing   0 members

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