Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
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
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-15-2006 , 15:08  
Reply With Quote #2

Like this? http://forums.alliedmods.net/showthr...=242472#249748
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-15-2006 , 16:54  
Reply With Quote #3

He is trying o make the bot walk there. The code I posted might cause the bot to hop if it while on the ground.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Reply


Thread Tools
Display Modes

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