Re: crates
Posted by hutchy212 on
Fri May 19th 2006 at 7:03pm
9 posts
1 snarkmarks
Registered:
May 19th 2006
Hey,
Ive been working on locked doors and keycards, and i really want to put a keycard i have made inside a crate. I am using a item_item_crate not a prop. Any ideas how i can do this. Im very new to mapping in HL2 so this could very well be a stupid question but i have search through a few forums to sort this out myself but no luck.
Re: crates
Posted by Crono on
Fri May 19th 2006 at 8:14pm
Crono
super admin
6628 posts
700 snarkmarks
Registered:
Dec 19th 2003
Location: Oregon, USA
I imagine you put an output on the crate (I believe those are the ones that smash to pieces right?) in the output it'd be something like "OnBreak" Spawn keycard. I'm not sure how you spawn custom items though. Perhaps it'd need to be more complex. If it doesn't work with a custom item, see if you can get that technique to work with ammo or something.
In the most complex of situations, you might just want to make a keycard object and add it to the weapon class or something. (I'm sure there's a way you can do it)
Blame it on Microsoft, God does.
Re: crates
Posted by hutchy212 on
Fri May 19th 2006 at 10:13pm
Posted
2006-05-19 10:13pm
9 posts
1 snarkmarks
Registered:
May 19th 2006
Thats what i thought, i created an output but i dont understand how to get how to spawn the keycard.
Re: crates
Posted by hutchy212 on
Sat May 20th 2006 at 3:49pm
9 posts
1 snarkmarks
Registered:
May 19th 2006
Cheers for you help,
Cant figure it out so dont think im going to bother, ive done all the keycards and doors and stuff. I just fancied hidding some of the cards in crates.
Got bigger problems to sort out now.