Ok man, look this, i reparated the problem but with other it. (I copy of A6 examples)
Code:
function ENDME()
{
if(event_type==EVENT_ENTITY)
{
my.alpha -= 20 * time;
effect(explo,50,my.x,normal);
wait (1);
effect(explo_smoke,40,my.x,normal);
ent_playsound (player, explosion, 300); // sword sound
ent_remove (me);
}
if(event_type==EVENT_BLOCK)
{
my.alpha -= 20 * time;
effect(explo,50,my.x,normal);
wait (1);
effect(explo_smoke,40,my.x,normal);
ent_playsound (player, explosion, 300); // sword sound
ent_remove (me);
}
}
Two IFs and all OK.
Thanks you by all help.
Bye