Im not sure but I think my.enable_block is automaticaly set to on....

when the player touches the ground (block) the event function starts.
->you points to a block. That's not possible.

So check before if the player touches an entity



Code:


function decrease_health()
{
if(event_type==event_entity) //check if the player was hit by an entity
{

if(you.skill47==5)
{
player.health -= 50; // loose 50 health point every tick
}

if (my.health <= 0)
{
my.event = null;
snd_play (death_wav, 40, 0);
my.z -= 30; // set a lower height for the player
camera.roll = 30; // and a weird roll angle
ent_remove(player);
}
}
}






Now it SHOULD work imao


nipx