Hmmm... I'll look around and see if I can find some functions that can do it!


EDIT: Observing David Lancaster's tutorial with an attached weapon, I'll have to reposition the bones to the character's bones each time.

So I'll need to replace the vector things with bone-related things... This might not turn out to be as difficult as I thought. But I'm still a noob, so it might not work. xD

Code:
ACTION attach_weapon {
my.passable = on;
proc_late();
WHILE (you != null) {
vec_for_vertex(temp.x,you,1175); //hand palm base
vec_for_vertex(temp2.x,you,1240); //hand palm tip
vec_set(my.x,temp.x);
vec_diff(temp.x,temp2.x,temp.x);
vec_to_angle(temp.pan,temp.x);
vec_set(my.pan,temp.pan);
wait(1);



Last edited by Tuah; 08/19/09 22:06.