Oh, OK. If thats all your oing to do in the enemy actions
its very wasteful, but if theres other stuff in there then its OK.
Enemy actions would be something like this...
acion enemy_1()
{
while(me)
{
//do AI stuff
if(my.health<=0) ent_remove(me);
wait(1);
}
//this gets run when entity is dead...
player_score = player_score + 50;
}
acion enemy_2()
{
while(me)
{
//do other AI stuff
if(my.health<=0) ent_remove(me);
wait(1);
}
//this gets run when entity is dead...
player_score = player_score + 20;
}