Raised This Month: $ Target: $400
 0% 

Entity wont move


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kurai
New Member
Join Date: Mar 2006
Old 03-21-2006 , 11:18   Entity wont move
Reply With Quote #1

Code:
public atk_think(id) {   new Float:test[3] = {0.0,0.0, 10.0}   entity_set_vector(id,EV_VEC_velocity,test);   entity_set_float(id,EV_FL_nextthink,halflife_time() + 0.01) } public cmdBlast(id) {   new Float:pOrigin[3];   entity_get_vector(id,EV_VEC_origin,pOrigin)   pOrigin[2] += 20;   new ent = create_entity("info_target")       entity_set_string(ent,EV_SZ_classname,"blast")   entity_set_model(ent,"sprites/blast.spr")   entity_set_vector(ent,EV_VEC_origin,pOrigin)   entity_set_int(ent,EV_INT_solid, 2)   entity_set_float(ent,EV_FL_nextthink,halflife_time() + 0.01)     return PLUGIN_HANDLED }

the entity creates just fine and the entity thinks as well (i checked the ids the think function was receiving) however the sprite wont move.. any thoughts y?

EDIT: I fixed it. i based the entity on func_wall instead of info_target.
Kurai 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 16:44.


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