This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Well, i was messing around with weapons, and was trying to get a weapon to
create an entity as it's ammo.
(Like the RPG creates the missle.)
So i tried the following code: (Trying to get a weapon to fire off watermellons)
--------
CBaseEntity *pMellon = (CBaseEntity *)CreateEntityByName("prop_physics");
pMellon->SetOwnerEntity( pOwner );
pMellon->SetModel("models/props_junk/watermelon01.mdl");
pMellon->Spawn();
pMellon->SetAbsOrigin(vecOrigin);
--------------
(Code above is in the PrimaryAttack function of the weapon)
I set it's origin to were the weapon shoot position is, but it doesn't spawn...
Any ideas?
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders