hi, I use A6 extra and scripted following code:
Code:
action enemy_creator
{
my.passable = on;
my.invisible = on;
while(1)
{
if(enemy_count < max_enemy_count) //max_enemy_count = 5
{
ent_create("speeder.mdl",my.x,enemy_flight);
enemy_count += 1;
}
wait(5);
}
}
action enemy_flight
{
counter += 1;
}
The creator should create 5 entities. But when I run it, it creates 144655 entities (I see it at the var counter and at the many entities) and enemy_count is 5! What I make wrong?