Frictional Games Forum (read-only)
Respawning - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Respawning (/thread-20886.html)



Respawning - Hailfiretank - 03-23-2013

Simple really, how do I create an area for the player to re spawn in, should they die during my custom story?

Thanks!


RE: Respawning - NaxEla - 03-23-2013

You'll need to use the CheckPoint function:

CheckPoint(string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry)

asName - the internal name
asStartPos - the name of the StartPos in the editor
asCallback - the function to call when the player dies/respawns
asDeathHintCat - the category of the death hint message to be used in the .lang file
asDeathHintEntry - the entry in the .lang file


RE: Respawning - Hailfiretank - 03-24-2013

Spiffing, thank you Smile


RE: Respawning - VeNoMzTeamHysterical - 03-25-2013

(03-23-2013, 09:39 PM)NaxEla Wrote: You'll need to use the CheckPoint function:

CheckPoint(string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry)

asName - the internal name
asStartPos - the name of the StartPos in the editor
asCallback - the function to call when the player dies/respawns
asDeathHintCat - the category of the death hint message to be used in the .lang file
asDeathHintEntry - the entry in the .lang file
Didn't know that very useful thx.