Code:
new Float:origin[3];
new Float:angle[3];
entity_get_vector(id,EV_VEC_origin,origin);
entity_get_vector(id,EV_VEC_angles,angle);
//origin[0]-=3.5;
//origin[2]-=0.8;
origin[0] += ( -3.5 * floatsin( -angle, degrees) ),
origin[2] += ( -0.8 * floatcos( -angle, degrees) ),
entity_set_origin(KaiokenCharge[id], origin);
according to everything, this should move the current entity where the player rotates at the exact angle everytime,but it just sticks it into players waist ( 0,0,0 coordinates ) should I establish the angle also for this to take effect?