Raised This Month: $ Target: $400
 0% 

Trying to get an entity to move from one origin to another..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 05-15-2006 , 14:37   Trying to get an entity to move from one origin to another..
Reply With Quote #1

I've created a bot using the following code:

Code:
BOT_Create( Float:origin[3] ) {     new ent = create_entity( "info_target" );     entity_set_origin( ent, origin );         entity_set_int(     ent, EV_INT_fixangle, 1                     );     entity_set_float(   ent, EV_FL_takedamage, 1.0                  );     entity_set_float(   ent, EV_FL_health, 100.0                    );     entity_set_string(  ent, EV_SZ_classname, "npc"                 );     entity_set_model(   ent, "models/player/arctic/arctic.mdl"      );     entity_set_int(     ent, EV_INT_solid, 2                        );     entity_set_byte(    ent, EV_BYTE_controller1, 125               );     entity_set_byte(    ent, EV_BYTE_controller2, 125               );     entity_set_byte(    ent, EV_BYTE_controller3, 125               );     entity_set_byte(    ent, EV_BYTE_controller4, 125               );     new Float:maxs[3] = {16.0,16.0,36.0};     new Float:mins[3] = {-16.0,-16.0,-36.0};     entity_set_size(    ent, mins, maxs                             );     entity_set_float(   ent, EV_FL_animtime, 2.0                    );     entity_set_float(   ent, EV_FL_framerate, 1.0                   );     entity_set_int(     ent, EV_INT_sequence, 1                     );     entity_set_float(   ent, EV_FL_nextthink,halflife_time() + 0.01 );     drop_to_floor( ent );     return ent; }

How can I tell the ent to move from one origin to another? I want it to "walk" to it, not just teleport... So all I have is ent id, start location, end location...

Help please?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
 



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:31.


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