function attack()
{
VECTOR enemy_speed;
VECTOR temp;
my.skill99 = 1;
my.health = 20;
if(event_type == EVENT_IMPACT)
{
my.health -= 50;
if(my.health <= 0)
my.event = explode;
}
while(my.health > 1 || player == 1)
{
vec_set (temp.x, player.x);
vec_sub (temp.x, my.x);
vec_to_angle (my.skill99, temp);
my.pan -= ang(my.pan - my.skill99) * 0.2 * time_step;
wait(1);
c_move (me, vector(0.1 *time_step, 0, 0), nullvector, GLIDE);
wait (1);
// Setze Licht unterhalb der Entität (dynamisch)
my.lightrange = 30;
my.red = 0;
my.green = 0;
my.blue = 255;
set(my,LIGHT);
}