Code:
new hitEntity = -1
new Float:User_origin[3],Float:User_angles[3]
entity_get_vector(id, EV_VEC_origin, User_origin)
entity_get_vector(id, EV_VEC_angles, User_angles)
new Float:hitX, Float:hitY, Float:F_Distance, Float:F_DistLow, Float:F_DistHigh
hitEntity = trace_forward ( User_origin, User_angles, 50.0, id, hitX, hitY, F_Distance, F_DistLow, F_DistHigh )
i cannt get the (hitX, hitY) in front of the player,
it's always in front left of the player (about left 40 degree),
and result don't ignore the id.
trace_forward function
http://www.amxmodx.org/funcwiki.php?go=func&id=797
Anyone help to fix this or may be a bug? thx.
__________________