Jump to content

Linking a Lever and Gate


kingtitan

Recommended Posts

I am a mod where my house in inside a fort. I wanted to add a gate to the fort entrance that could be opened and closed by a hidden lever. However, I'm not exactly sure how to do this, and google has turned up nothing for me. Placing the items in game is not the issue, but "linking" them to work together is what I'm just not sure how to do.

 

Basically I need to know a couple things:

-Do gates that can be linked to activators (levers, pull handles, ect) come from the activator sub menu in the CS?

-Do either the handle or the gate have to be scripted to use, or can you simply create a parent reference?

-Simply put, how do I make them work?

 

Any help offered is greatly appreciated.

Link to comment
Share on other sites

Go to FortMagia to look at an example.

 

RFSwitchLever01 is in the activator menu.

 

RFWHallPortcullis01 is in the activator menu.

 

Find a really generic lever like this one that is used tons of times in the game. It will have a general purpose script that will work for you. Do not use an switch with a really special script that is only used once in the whole game. Unless you are doing something special, you do not need to write a new script.

 

Find a really generic gate too.

 

Make sure the gate is a persistent reference.

 

Do "Enable Parent" on the lever. Select the gate with the cursor.

 

Play-test your lever and gate. It should work.

Link to comment
Share on other sites

Go to FortMagia to look at an example.

 

RFSwitchLever01 is in the activator menu.

 

RFWHallPortcullis01 is in the activator menu.

 

Find a really generic lever like this one that is used tons of times in the game. It will have a general purpose script that will work for you. Do not use an switch with a really special script that is only used once in the whole game. Unless you are doing something special, you do not need to write a new script.

 

Find a really generic gate too.

 

Make sure the gate is a persistent reference.

 

Do "Enable Parent" on the lever. Select the gate with the cursor.

 

Play-test your lever and gate. It should work.

 

Haha I meant to reply to say that I had played around with it enough to figure it out. My problem was leaving the gate's persistent reference box unchecked. Plus I just used vanilla scripts and it worked fine. Thank you tho a ton.

 

EDIT: Kudos cause you actually did answer :)

Edited by kingtitan
Link to comment
Share on other sites

  • Recently Browsing   0 members

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