interresting bug
Posted: Sat Nov 17, 2012 6:43 am
AI Fight function:
If function in_combat_event_loop is empty - NPC disappear before he says "pass2". Completely, like it gonna be killed. Spawnpoint gets activated (it means death.src was activated). But no corpse, nothing.
If i add anything into in_combat_event_loop, some small thing like say("blabla"); or return 0; it works.
I use linux.
Code: Select all
while (opponent and !opponent.dead and !opponent.hidden and !opponent.concealed and Distance(me, opponent) < 12)
in_combat_event_loop(opponent);
say ("pass2");
ev := os::wait_for_event( 1 );
endwhile
Code: Select all
function in_combat_event_loop(opponent)
endfunction
If i add anything into in_combat_event_loop, some small thing like say("blabla"); or return 0; it works.
I use linux.