respawnable prop that randomly spawns items

  • Thread starter Thread starter gesimund
  • Start date Start date
G

gesimund

Guest
Hi, just started to learn mapping few days ago. Pretty much got all the basics down and would like to attempt a fairly simple map that will get me used to the cool stuff I can do with entities. One of them I've been trying to do is make a crate using prop_physics_respawnable class that will respawn a random item (health, ammo, etc.) everytime it spawns.

What I've tried so far is making a crate output to logic case on break. Then logic case output to 3 different func_physbox and each spawns a different item.

Like I said, I just started learning to map a few days ago so im probally doing it completely wrong or its not even possible to do :(. Anywho, any help will be much appreciated.
 
Health and ammo in box outside map, each with a unique targetname, with a point_template at its origin pointing to it; an env_entity_maker for each point_template, pointing to it, at the prop's center and parented to the prop; OnBreak, prop fires a logic_auto that fires a random env_entity_maker. Health and ammo must have outputs defined that kill themselves once they're picked up, so they don't try to respawn there again.
 
Back
Top