Frictional Games Forum (read-only)
Make something happen at death? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Make something happen at death? (/thread-5487.html)



Make something happen at death? - Stangi - 11-19-2010

Is it possible to make something happen at death? I can't find a function that can do anything like that...
Thanks Smile


RE: Make something happen at death? - Frontcannon - 11-19-2010

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?


RE: Make something happen at death? - house - 11-20-2010

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)


RE: Make something happen at death? - Stangi - 11-20-2010

Thanks guys, as soon as get some time I will look into it.