function move_bomb()
{
c_setminmax(me); // bounding box setzten
my.STATE = 1;
my.pan = your.pan;
my.tilt = your.tilt;
my.roll = your.roll;
while(my.STATE==1)
{
// Bombe flieg
c_move(me, vector(0, 50 * time_step, 0), vector(0, 0, 0), IGNORE_YOU);
if(my.y >= 980 || my.z >= 580)
{ // levelende erreicht?
my.STATE = 2;
}
if (HIT_TARGET || my.y >= 980 || my.z >= 580)
{
//ent_create("explosion+4.bmp",vector(my.x,my.y,my.z+20),NULL); // particle effect planned
my.STATE = 2;
if(HIT TARGET)
{
//do something here to the HIT_TARGET
}
}
wait(1);
}
ent_remove(me);
}