PDA

View Full Version : Spawning weapons



MundM1996
9 Sep 2010, 12:11pm
Hi,
If I spawn a weapon (weapon_smokegrenade) with an env_entity_maker wich is triggered from the weapon (weapon_smokegrenade) (OnPickUp) it doesn't spawn there, where i placed it in hammer ...

Hope anyone can help me.

Bob Loblaw
9 Sep 2010, 12:29pm
Not env_entity_maker. Use Point_template. And choose which entities it will spawn.

So weapon_smokegreande OnPickUp point_template ForceSpawn (will spawn any entities that the point_template is specified to spawn).

Make sure to go into point_templates Flags and check off "Do not remove template entities on spawn."
Otherwise it won't be there to begin with, and then you can't pick it up to spawn another :P

If you're still having troubles when I'm back from school I make a prefab so you can see how it works.