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.