Keys for doors?

Need Help? The Day isnt going so well on the Mapping front?
Post Reply
User avatar
Vasili
npc_helicopter
npc_helicopter
Posts: 901
Joined: Wed Aug 02, 2006 8:22 pm
Location: England

Keys for doors?

Post by Vasili »

How would you get a key like for opening doors that you can get of monsters.
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

I not entirely sure but I would go about it, with something like this.


Do you want the key to be made from a model or a brush? do you want the key to be carried or merely collected and then trigger what ever you want unlocked?
I'm not sure about brushes, If a brush I would tie it to a func_physbox and then create a point_template for the brush or model, If you want the item to drop where ever the dead monster/npc drops then you may have to experiment with parenting the item/template to the npc. And then use a some sort of output input like Ondeath key1 forcespawn fire only once set to yes!

I'm quite often wrong when I give advise so I hope what I've said gives you some ideas and a starting point.




http://www.snarkpit.net/editing.php?pag ... als&id=156

Once you've figured out dropping the key, here^^^^ Is a nice tutorial on using the key!
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post by skidz »

Yea, physics object with a filtered trigger to unlock the door.
User avatar
Vasili
npc_helicopter
npc_helicopter
Posts: 901
Joined: Wed Aug 02, 2006 8:22 pm
Location: England

Post by Vasili »

Thank you.
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

http://twhl.co.za/tutorial.php?id=64

http://twhl.co.za/tutorial.php?id=28

A couple of hl1 tutorials that may also give you some ideas, although bear in mind they are hl1.
Post Reply