Raised This Month: $ Target: $400
 0% 

Spawn a HE grenade on player.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Voltron
Senior Member
Join Date: Jun 2007
Location: Above the battlefield.
Old 05-17-2011 , 02:50   Spawn a HE grenade on player.
Reply With Quote #1

Code:
new nade = engfunc(EngFunc_CreateNamedEntity, "armoury_entity");
set_pev(nade, pev_classname, "grenade"); 
entity_set_int(nade,EV_ENT_owner, owner); 
engfunc(EngFunc_SetOrigin, nade, playerOrigin); 
engfunc(EngFunc_SetModel, nade, "models/w_hegrenade.mdl");
set_pev(nade, pev_movetype, MOVETYPE_TOSS); 
set_pev(nade, pev_solid, SOLID_TRIGGER);
Doesn't spawn a nade.
What am I doing wrong?
__________________
Voltron is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode