Hi there,
ive got a question and i dont know for what i should search so i will post my problem now.

I´ve got a Tower. It´s a lasergun who is static implented in a station. If a entity comes nearer the lasergun should rotate to the enemy if he´s friendly the lasergun only follows, if he is unfriendly it should begin to fire...

AT the moment i´m scanning that with these command lines:

Code:

action geschuetzturm
{
while(1)
{
if(vec_dist(my.x, menu_patroule.x) < 200) //is that a good solution?
{
// What here?
}
wait(1);
}
}



I hope you can help me!

greetings!

ADD:

I´m using bones to animate the lasergun. I want to rotate the main on the tower and all of its children!

Last edited by Moerk; 07/13/07 00:40.

"Die Kette die mich ewig hält möge man erst noch schmieden" Regina S.