Sticking sword on back NOOB Question

Posted By: RyuShinji

Sticking sword on back NOOB Question - 02/16/09 01:58

Hi I want my sword to be stuck to the players back heres my code why doesnt this work and what will???
Quote:
vec_for_vertex(my.X,you,134); // get position of weapon
vec_set(my.pan,you.pan); // set pan to owner's pan
vec_to_angle(my.pan,you.x);
my.y = my.y + 8 * sin(you.pan) - 8 * cos(you.pan);
my.pan -= 90; // adjust weapon so player can see it better
my.tilt += 45; // adjust weapon so player can see it better

Posted By: Xarthor

Re: Sticking sword on back NOOB Question - 02/16/09 11:20

What exactly does not work with that snippet?
Posted By: Ottawa

Re: Sticking sword on back NOOB Question - 02/18/09 00:40

Hi!

Is this the code your using

vec_for_vertex(my.X,you,134); // get position of weapon

because my.X should be my.x

Ottawa.
© 2023 lite-C Forums