View Single Post
Author Message
BANDIT228
Member
Join Date: Sep 2017
Old 07-19-2018 , 14:53   have entity move where i aim at.
Reply With Quote #1

public AIM(id)
{
if (is_valid_ent(id))
{
new Float:Velocity[3]
VelocityByAim(pev(id,pev_owner), 1000, Velocity)
entity_set_vector(id, EV_VEC_velocity, Velocity)
new Float:NewAngle[3]
entity_get_vector(id, EV_VEC_v_angle, NewAngle)
entity_set_vector(id, EV_VEC_angles, NewAngle)
}
}

currently i use that...........dont find any other good examples....

i am sure i need to use "get user origin"

thing is....i spawn a entity form another player...........that entity should fly to the position i aim at.

right now i only takes my angles.....

but i want it that i look at the ground and it flys there.

anyone has a snippet for me?

Last edited by BANDIT228; 07-20-2018 at 05:52.
BANDIT228 is offline