New Member
- Joined
- Oct 8, 2011
- Messages
- 21
- Best answers
- 0
Well, I'm trying to set the sprites origin in the players hands using the players facing angle to PUT it in there, but I can't get the formula to do it
I've tried some of my past used formulas in .AMX where I used to create an explosion infront of player in any angle he turns
I have this fornow, but the calculation returns 0 all the time, I've tried doing different ways, but it doesn't create the sprite in his hands.. Can anyone help me?
P.S the code is what I started with cause other code I wrote didn't work
I've tried some of my past used formulas in .AMX where I used to create an explosion infront of player in any angle he turns
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 * floatsin( -angle, degrees) ),
origin[2] += ( -0.8 * floatcos( -angle, degrees) ),
entity_set_origin(KaiokenCharge[id], origin);
P.S the code is what I started with cause other code I wrote didn't work