Raised This Month: $ Target: $400
 0% 

Create entity failureS


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-22-2009 , 06:40   Create entity failureS
Reply With Quote #1

I tried to create an entity when you press attack, so far any atempt failed,
The entity should be a ball, wich bounce a little and then stops

PHP Code:
new ball engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString,"info_target"));
 
set_pev(ballpev_classname"ball");
    
new 
Float:fOrigin[3];
pev(idpev_originfOrigin);
fOrigin[2] += 30.0;

//get_user_origin(id,origin,3) gives a runtime error 10 :s
    
new Float:fAngles[3];
pev(idpev_anglesfAngles);
    
engfunc(EngFunc_SetModelballballmodel);
    
set_pev(ballpev_anglesfAngles);
set_pev(ballpev_originfOrigin);
set_pev(ballpev_movetypeMOVETYPE_BOUNCE);
set_pev(ballpev_velocity500
__________________
I am out of order!
grimvh2 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:09.


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