my actor cant die
I create an actor player an actor enemy and a variable hp
I put this scipt
scipt editor: player -> create actor
int hp = 7;
script editor: player -> collision (any side of enemy)
hp = hp - 7;
if (hp=0)
{
DestroyActor("vie");
DestroyActor("vie");
}