Hello,
I do not understand why the code doesn't work. I have a model (a player with a sword) and separated them as 2 models (because i wanted to assign a fx to the sword). I tried to attach the sword to the playermodel with this code:
action swordaction
{
my.material=glowmodel;
my.passable = ON;
while(1)
{
my.scale_x = player.scale_x;
my.scale_y = player.scale_y;
my.scale_z = player.scale_z;
my.frame = player.frame;
my.x = player.x;
my.y = player.y;
my.z = player.z;
my.pan = player.pan;
my.tilt = player.tilt;
wait(1);
}
my.bright=on; //
my.nofog=on; //
}
But it does not work correctly! The frames do not alway fit, and sometimes it looks like the swords position is wrong... why?
please help me, thank you