How do I make a door open only when HEV suit is equipped? Created 3 years ago2021-05-20 13:56:24 UTC by HelloGordon HelloGordon

Created 3 years ago2021-05-20 13:56:24 UTC by HelloGordon HelloGordon

Posted 3 years ago2021-05-20 13:56:24 UTC Post #345640
I want a door, which is opened by pressing a button to open only when you have the HEV suit, but I don't know how to do it.
Posted 3 years ago2021-05-20 14:02:33 UTC Post #345641
Simple way would be to set up a trigger_once brush where the hev is that targets a multi source, make the multi source the doors master and hey presto.
Posted 3 years ago2021-05-20 15:43:53 UTC Post #345642
yeah but what's the trigger_once brush for then?
Posted 3 years ago2021-05-20 15:45:29 UTC Post #345643
cos my door is opened by a button and this button targets to a multi_manager which operates 2 sliding doors btw
Posted 3 years ago2021-05-20 17:21:04 UTC Post #345644
In that case you need to set the buttons master to the multi source and not the door. The multi source essentially acts as an ‘off/on’ switch, when everything targeting it has triggered, it sends a signal to the button which will now allow it to be used.

You should check out this tutorial for a working example;

https://twhl.info/wiki/page/Tutorial%3A_Multisource

For your particular situation the trigger-once brush would be put around the hev suit entity so that when you walk into it you’ll pick up the suit but also trigger the multisource.
Posted 3 years ago2021-05-20 18:21:30 UTC Post #345646
thanks for your help but i'm getting pretty lost in all of this and it still doesn't work so i'm just gonna post how the whole thing works and maybe you can help me:

trigger_once is next to the HEV suit and it has delay 0 and it's target is jeff (multisource)
jeff is a multisource and it has 1 parameter which is named icarly (func_button) and it's value 1
then there is icarly (func_button), it's target is mm2 and it's master is jeff
mm2 is a multi_manager and it has 2 parameters door1 and door2 both of them have value 0
door1 and door2 are 2 doors next to each other, 1 has 180' angle and other has 0' angle

any help appreciated
Posted 3 years ago2021-05-20 18:43:36 UTC Post #345648
You don’t need to target Icarly (the button) with the multi source. Remove that and it should work. If it still doesn’t work upload it and we’ll have a look.
Posted 3 years ago2021-05-20 19:54:05 UTC Post #345649
Posted 3 years ago2021-05-20 20:14:00 UTC Post #345650
That's an interesting aesthetic you've got going on there!

OK a few things wrong with it;
  • You don't need to target the multisource twice. Remove the target from the item_suit.
  • On the multisource, remove the value 'ajkarli', this isn't needed.
  • You're func_button doesn't need a name for this so lets remove that too
  • I'm not sure why you've got the global named 'ajkarli' for the func_button, this isn't needed so delete it.
  • Unless you're planning on the doors moving at different times and/or having anything more trigger when you press the button, you don't need a multimanager, just have both doors named the same and have the button target them directly. Also in the current map the multimanager isn't actually setup to trigger anything anyway.
So what should now happen is;

Player steps into the trigger_once ==> trigger_once notifies the multisource ==> multisource (now in its on state) will allow the button to be pressed to activate the door.

Hope that helps
Posted 3 years ago2021-05-20 20:45:57 UTC Post #345651
dude, you're a straight up G! it finally works! i wouldn't be even close to making this work if it wasn't for you. thanks, Andy
Posted 3 years ago2021-05-20 20:56:35 UTC Post #345652
No probs pal, glad you got it going :)
You must be logged in to post a response.