Frictional Games Forum (read-only)

Full Version: Make something happen at death?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to make something happen at death? I can't find a function that can do anything like that...
Thanks Smile
There is a function for the Player Spawn, but I don't think it's useful here.

Is it a certain, triggered death or just a 'regular' one? You could work with a function that triggers that once the player's health reaches 0, but you need to work with variables there..

Maybe Frictional has some documentation on it in their .hps files, as they change monster spawns and the like once you die..

Maybe a CollideArea at the place where the player spawns?
This is what you need:
CheckPoint(string& asName,string& asStartPos ,string& asCallback, string &asDeathHintCat, string &asDeathHintEntry);

string& asName: Name you want to give this checkpoint. (Doesn't really matter)

string& asStartPos: Where the player spawns after death. (Use Playerstarts for spawns. You can use more than one playerstart in a level)

string& asCallback: What should happen when you die. (This is what you need)

string &asDeathHintCat: The category the death hint is in. (Found in extra_english.lang)

string&asDeathHintEntry: The name of the entry of the death hint (Found in extra_english.lang)
Thanks guys, as soon as get some time I will look into it.