Weapon Spawn on NPC Death
Post Reply
Quote
Re: Weapon Spawn on NPC Death
Posted by mmrempen on Mon Jun 11th at 9:37pm 2007


So I have this poison zombie that carries a shotgun on his back, and I want him to drop the shotgun when he dies, so the player can pick it up.

What I did is I made a env_entity_maker parented to the zombie, then made a point_template. I have a shotgun on the roof (unreachable), and I made template #1 under point_template set to the shotgun's name (shotty1). Then I made an output on the zombie that upon its death, it would make the env_entity_maker forcespawn. I also linked the point_template and the entity_maker as was instructed in various tutorials.

No shotgun appears when zombie dies. Am I doing something wrong?




Quote
Re: Weapon Spawn on NPC Death
Posted by mmrempen on Wed Jun 13th at 3:33pm 2007


Nobody has any idea? Am I not being clear enough about what I'm trying to do, or is this just plain impossible? I thought it would be pretty simple, and that I was just missing a step. Any help would be really great.



Quote
Re: Weapon Spawn on NPC Death
Posted by Riven on Wed Jun 13th at 9:19pm 2007


I'm not sure, but when I set up for triggers to be fired on an "ondeath" output, it doesn't normally work. It might just be a glitch, or I'm doing something wrong, but try triggering the shotgun to fall some other way. (By like a timer after the map spawns <just as a test>) To see that the rest of the setup works and that in fact, it probably is the "ondeath" output not firing.






Post Reply