locked door button unlock Created 9 years ago2015-03-06 14:25:20 UTC by Malle Malle

Created 9 years ago2015-03-06 14:25:20 UTC by Malle Malle

Posted 9 years ago2015-03-06 14:25:20 UTC Post #324537
how to have a locked door that can be opened if you have a button that grants full access.

this doesnt mean a button should open the door directly, but just change the lock state of it.

anyone that can help me helps the TWHL tower :P
Posted 9 years ago2015-03-06 14:37:44 UTC Post #324539
If using the Spirit of Half-Life engine, this is lovely and easy:

Give the button a name and set the door's Master to the buttons name. That way the door will not operate unless the button is pressed.

If using standard GldSrc then you will need to use a trigger_relay I believe, which I have totally forgotten how to use because Spirit...

Worst case scenario, include info in a text file when you sent me your floor and I will fix any issues with Spirit goodness...
monster_urby monster_urbyGoldsourcerer
Posted 9 years ago2015-03-06 14:51:44 UTC Post #324541
i dont want to use a button to directly open the door, its more that the 'lock' gets removed when the button is pushed
Posted 9 years ago2015-03-06 14:56:06 UTC Post #324542
i see that the flag 'use only' doesn't grant me the 'lock state' so thats a nasty thing i want to prevent
Posted 9 years ago2015-03-06 16:16:57 UTC Post #324545
Place a multi_manager entity in your map and give it a name. Now, set the door's 'master' keyvalue to the name of the multi_manager. Now, make the button target the multi_manager. Now, when the player steps up to the door, it should open.
Dr. Orange Dr. OrangeSource good.
Posted 9 years ago2015-03-06 16:28:27 UTC Post #324546
i dont want to use a button to directly open the door, its more that the 'lock' gets removed when the button is pushed
Like I said, with spirit you just set the door's master as the button. The door will be locked unless the button has been pressed. The button doesn't make the door open.
monster_urby monster_urbyGoldsourcerer
Posted 9 years ago2015-03-06 16:54:40 UTC Post #324547
Now, set the door's 'master' keyvalue to the name of the multi_manager.
doesn't solve my problem
Like I said, with spirit you just set the door's master as the button. The door will be locked unless the button has been pressed. The button doesn't make the door open.
I dont use the mod, im using the original Half-Life because of the TWHL tower level
Posted 9 years ago2015-03-06 17:03:21 UTC Post #324548
The button must target the multi_manager, and not the door directly. Also, the door should have an empty 'name' field.
Dr. Orange Dr. OrangeSource good.
Posted 9 years ago2015-03-06 17:12:00 UTC Post #324549
The button must target the multi_manager, and not the door directly. Also, the door should have an empty 'name' field.
I did what you exact said

door > master: multimanager
button> target: multimanager
door> name: '' *none

doesnt work.

without pressing the button the door can be opened..
Posted 9 years ago2015-03-06 18:21:21 UTC Post #324550
I dont use the mod, im using the original Half-Life because of the TWHL tower level.
Uhm... It's kinda based on spirit. :P
monster_urby monster_urbyGoldsourcerer
Posted 9 years ago2015-03-06 20:58:11 UTC Post #324551
Multisource for masters, not multimanagers
Last paragraph

Name your multisource: "Door_master"
The door doesn't need a name
In the door's "Master"field, type in "Door_master"
Have the button trigger "Door_master"

Done. :D
Tetsu0 Tetsu0Positive Chaos
Posted 9 years ago2015-03-06 21:21:02 UTC Post #324552
Done. :D
true,

what i did

func_button
target = global1

env_global
name = global1
GlobalStateToSet = state1
TriggerMode = toggle
InitialState = 'on' if you want the doors unlocked at first, 'off' if not.
Tick the 'set initial state' flag

multisource
name = multi1
target = (leave this blank)
GlobalStateMaster = state1

func_button
name = leave this blank
target = relay1

relay
name = relay1
target = global1
remove on fire flag checked

so only unlock

thanks to SlayerA's post

this is all necessary to get the door from lock state and letting it be unlocked!

http://twhl.info/forums.php?thread=4900
Posted 9 years ago2015-03-07 00:08:50 UTC Post #324553
this is all necessary to get the door from lock state and letting it be unlocked!
Again, unless you use Spirit... which TWHL Tower does. :P

Glad you solved it though.
monster_urby monster_urbyGoldsourcerer
Posted 9 years ago2015-03-07 01:44:38 UTC Post #324555
Uh... I thought this was possible with vanilla HL, or am I wrong?
Posted 9 years ago2015-03-07 04:06:34 UTC Post #324556
I believe that's what the two posts before Urby's were dealing with.
Jessie JessieTrans Rights <3
Posted 9 years ago2015-03-10 19:20:57 UTC Post #324561
this is all necessary to get the door from lock state and letting it be unlocked!
False,
Globals are variables stored between levels; unless your button and door are in two separate levels, you don't need that.
Not to sound rude, but it's much much simpler than that

My example will work, just make sure to have the button reset to -1 to it stays pushed.
Optionally, if you want a button that resets, you can trigger a relay into the 'on' state, and have THAT trigger the door.
Simple Example - http://twhl.info/vault.php?map=6046

Also, Since we're using Spirit (for TWHL TOWER), you can follow Urby's method, but i'm pretty sure Spirit is backwards compatible with Vanilla
Tetsu0 Tetsu0Positive Chaos
You must be logged in to post a response.