Frictional Games Forum (read-only)

Full Version: Respawning
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Simple really, how do I create an area for the player to re spawn in, should they die during my custom story?

Thanks!
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
Spiffing, thank you Smile
(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.