// enemy functions ///////////////////////////////////////
function start_level_type1()
{
...
// a loop creates 40+n enemies
enemy = ent_create("bee1.mdl", vector(50, 1000, 500), start_bee_wave1);
...
}
function start_bee_wave1
{
// moves the enemies until until they reach their temporary position
}
function attack_player
{
// not done yet - get called
// if a all enemies reached final posion
// or if an enemy got killed
// of if an enemy got back from attack to temporary postion
}
// bomb functions /////////////////////////////////////////
function move_bomb()
{
...
if (HIT_TARGET)
{
snd_play(snd_explode,100,0);
punkte_spieler += 30;
///!!!!!!! Here is my problem !!!!!!!!!! ///////////
ent_remove(enemy);
my.STATE = 3;
}
...
}
// player action (added in WED) ///////////////////////////
action spieler_aktion()
{
...
bomb = ent_create("bomb.mdl",vector(my.x+last_bomb_x,my.y+10,my.z),move_bomb);
...
}