Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Respawning
Hailfiretank Offline
Junior Member

Posts: 33
Threads: 12
Joined: Jun 2012
Reputation: 0
#1
Respawning

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

Thanks!
03-23-2013, 09:13 PM
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#2
RE: Respawning

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

In Ruins [WIP]
03-23-2013, 09:39 PM
Find
Hailfiretank Offline
Junior Member

Posts: 33
Threads: 12
Joined: Jun 2012
Reputation: 0
#3
RE: Respawning

Spiffing, thank you Smile
03-24-2013, 05:58 PM
Find
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#4
RE: Respawning

(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.

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
03-25-2013, 04:41 PM
Website Find




Users browsing this thread: 2 Guest(s)