Okay, I've heard from many people that this is not possible. This is incorrect, and it's been DONE before. I even did this in my un-released version of "Spy Trainer", so I kinda forgot to tell this to everyone.
Well, here it is. A way to let your boxes, crates, bad guys, whatever, DROP items!
There is but a single rule to follow in order to make this work in a believable fashion:
Rule: The entity that is going to drop the item CANNOT move.
This rule can be a bit daunting for use with enemies, but I think if you made the enemy powerful enough and set it up in a nice arena type fashion, then it can be pretty believable. (I.E. An enemy with an overly powerful automatic weapon, that doesn't stop firing.)
Okay, down to business.
Step 1) Make your entity that is going to be dropping an item. I'll call this entity "Item Dropper".
Step 2) Make you entity that is going to be dropped. Place it at the SAME location as the Item Dropper. I am going to call this entity "Dropped Item".
Step 3) Set up the Dropped Item's properties so that it can be spawned by activation.
Step 4) Alter the Item Dropper's "Destroy" script to activate the entity in it's "If Used" property. Now, go put in the Dropped Item's NAME into the Item Dropper's "If Used" property.
Step 5) Test it!
That is as simple as it comes.
I hope that this will help people to make those long sought after "Boxes that drop ammo".
Good luck out there, everyone.
The one and only,
~PlystirE~
Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!