Keys and doors Created 11 years ago2013-08-21 14:24:09 UTC by pwnalizer93 pwnalizer93

Created 11 years ago2013-08-21 14:24:09 UTC by pwnalizer93 pwnalizer93

Posted 11 years ago2013-08-21 14:24:55 UTC Post #315134
Hello, I am working on a gmod map and how can I do a key that the player can pick up and when the key get near the door, the door unlock.
I know how to do the door and how to lock,unlock it, I only need help with the key.
I searched a bit and only found a tutorial for gold source
Posted 11 years ago2013-08-21 18:49:45 UTC Post #315140
I'm guessing it would be about the same in Source.
Posted 11 years ago2013-08-21 18:58:48 UTC Post #315142
Just make a button with a key texture that stays pressed. That's what we've done in the core.
monster_urby monster_urbyGoldsourcerer
Posted 11 years ago2013-08-21 19:37:59 UTC Post #315144
The lazy approach to keys in The Core, by Urby.
Posted 11 years ago2013-08-21 20:01:22 UTC Post #315145
@Urby
"Hello, I am working on a gmod map and how can I do a key that the player can pick up..."
I want a key that player can pick up. Anyway I made a test map, it's working fine, will upload later.
@DiscoStu Is there Func_physbox in gold source?
func_physbox is a brush entity available in all Source games.
Posted 11 years ago2013-08-21 21:48:16 UTC Post #315147
There isn't, but you're in the Source forum if you're mapping for HL1.

You want a key that the player can pick up AND CARRY? Not possible in GS. The best you can do is what has been said.
Posted 11 years ago2013-08-21 23:27:12 UTC Post #315148
OR. You could add a key 'weapon' that doesn't do anything but has a viewmodel, and then add a trigger on top of it that would unlock the door, then strip weapons after you use the door. Hopefully you only have the key and the player cannot pick up other weapons along the way, because that's the simplest concept I can think of.
Crollo CrolloTrollo
Posted 11 years ago2013-08-22 01:24:32 UTC Post #315151
Ah... I thought this was a GoldSource question. I'm in the wrong forum...
monster_urby monster_urbyGoldsourcerer
Posted 11 years ago2013-08-22 14:39:12 UTC Post #315160
@Elliot Lucak It's just a map, not a mod
@DiscoStu I posted in Source Engine Discussion and there is a HL Engine Discussion.
Example map:http://twhl.info/vault.php?map=5917
Posted 11 years ago2013-08-22 16:21:32 UTC Post #315164
There isn't, but you're in the Source forum if you're mapping for HL1.
HL1 = Gold Source, not Source and I am Working on a Garry's mod map and Garry's mod use Source Engine.
You must be logged in to post a response.