Frictional Games Forum (read-only)

Full Version: Kill-Player Area.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
void OnStart()
{
AddEntityPlayerCollideCallback blablabla player killarea killscript
}

void KillScript()
{
I don't know how to make this part :]
}




Please help me out Smile

I want the player to die when he collides with a special area.
If you want to get the player to die often, use the below script. If he should die only once, change under AddEntityCollideCallback the false to true.
void OnStart()
{
AddEntityCollideCallback("Killareanamehere", "Player", "KillScript", false, 1);
}
void KillScript(string &in asParent, string &in asChild, int alState)
{
SetPlayerHealth(0.0f);
}