This is the code of the model:
Code:
action arm1
{
arm_1 = my;
my.passable = on;
vec_for_vertex(temp,my,87);
ent_create("kruis.mdl",temp, kruis1);
while(my)
{
vec_for_vertex(temp, machine, 235);
my.x = temp.x;
my.y = temp.y;
my.z = temp.z;
my.pan = machine.pan +90;
my.scale_x = 1.7;
my.scale_y = 1.7;
my.scale_z = 1.7;
//my.roll = arm_1.roll;
my.skill5 = 0; // max tilt
my.skill6 = -15; // min tilt
if(key_e == 1)
{
while(my.tilt < my.skill5)
{
my.tilt += 2 * time; // speed
//my.pan == machine.pan;
wait(1);
}
while(my.tilt > my.skill6)
{
my.tilt -= 2 * time;
//my.pan == machine.pan;
wait(1);
}
}
if(key_d == 1)
{
while(my.tilt > my.skill6)
{
my.tilt -= 2 * time;
//my.pan == machine.pan;
wait(1);
}
}
wait(1);
}
}
I know, my code may be look a real disaster.