Jump to content

Closing multiple doors.


LuciusConfucius

Recommended Posts

Hey! I tried searching for this, but could not find anything.

 

I have a big complex with lots of doors, and I'm making a "lockdown" trigger, that when activated closes all doors and locks them with 100 difficulty(or 75). I don't even know where to start? Is it as simple as setting one main door as a parent to all others?

Like this:

 

Lockdown ON:

MainDoor.Setopenstate 0

MainDoor.Lock 100

 

Lockdown OFF:

MainDoor.Setopenstate 1

 

and all doors that have this door as a parent will do exactly the same?

But would making one the parent to all others, make it impossible to open the other doors as long as the parent is closed?(closed not locked)

 

Also, how would I go about having the doors automatically close a while after you have opened them?(not locking them, just closing them)

And adding such a thing, would that interfere with my above script?

 

Sorry if I'm a bit confusing, I sometimes have trouble relaying my brain-process to others :P

Link to comment
Share on other sites

Children do not effect their parents. As in, if you open a child door, the rest will not open. I think the only time parents effect children is via scripts but I can't be sure, I haven't tested it out thoroughly.

 

I haven't tried doing so, but at the very least you could hide the parent door outside the playable area and use it just for reference. I don't have a definite answer (as i never needed to do this), but why don't you try it?

Edited by Skibblets
Link to comment
Share on other sites

Children do not effect their parents. As in, if you open a child door, the rest will not open. I think the only time parents effect children is via scripts but I can't be sure, I haven't tested it out thoroughly.

 

I haven't tried doing so, but at the very least you could hide the parent door outside the playable area and use it just for reference. I don't have a definite answer (as i never needed to do this), but why don't you try it?

I just tried making one door the parent to all others. And tested my code, but only the parent door closes and locks, the rest remain opened.

Guess I will need to make each and every door a reference and do a crap-long code :mellow:

Thanks for your help anyway! :)

Link to comment
Share on other sites

If you are setting them with a single activate parent it should work. You can also tick the 'only activate by parent' box (something like that) so that they will essentially be locked. The player will get the 'this door is opened elsewhere' message.

Ahhh thanks, I was messing about with "Enable Parent", going to try out "Activate Parent" heh, I'm a real noob when it comes to the geck, but I do think my complex is looking rather nice.

At least I have managed to navmesh it and optimize it.

 

Going to upload it when I'm all done with it.(Wich will take a while). And give all of you credits for helping me.

 

It's a pretty large bunker with enclave style. Except all the npc's won't be wearing the enclave power armour.

 

 

Also, anyone knows how to create a teleport marker where you have your map marker?

 

 

EDIT: Do I put the "Activate Parent" on the Main Door or on the doors controlled by the "Main Door"? Heh :P

Edited by Vincente Valtieri
Link to comment
Share on other sites

  • Recently Browsing   0 members

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