Raised This Month: $ Target: $400
 0% 

getting a player to follow another player?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lunarwolfx
Member
Join Date: Feb 2005
Old 03-30-2005 , 05:05   getting a player to follow another player?
Reply With Quote #1

well I'm trying to figure out how to get a player to follow another player

what I'm doing is:



Code:
public follow(id) { new player,body get_user_aiming(id,player,body) new whereiam[3],whereiwillbe[3] if(player<=0) { return PLUGIN_HANDLED; } get_user_origin(id,whereiam) get_user_origin(player,whereiwillbe) new move[3],Float:vector[3] move[0] = whereiam[0] - whereiwillbe[0] move[1] = whereiam[1] - whereiwillbe[1] IVecFVec(move, vector) entity_set_vector(id, EV_VEC_velocity, vector) set_task(0.1,"follow",id) }



I don't understand why the player isnt moving towards the other player.
lunarwolfx 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 09:49.


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