You removed them twice.

function game_over()
{
if(event_type == EVENT_IMPACT | event_type == EVENT_ENTITY)
{
wait(1);
g_over = 1;
ent_remove(t_bod);
ent_remove(t_gun);
ent_remove(ship);
ent_create("invader_over.mdl", vector (1000, 50, 20), NULL); //create lose frame
}
}
action invader_one()
{
ship = me;
c_setminmax(me);
my.emask |= (ENABLE_ENTITY);
// my.event = frag;
while(my)
{
if (g_over == 1)
{
wait(1);
ent_remove(me);
}
my.pan += 0.7;
c_move (my, vector(imix, imiy, imiz), vector(imiax, imiay, imiaz), IGNORE_PASSABLE); // move the invader according to the ai action
wait(1);
}
}
Delete the first.

Last edited by Ich_bin_Batman; 08/15/10 15:37.