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
Problem with checkpoints
MegaScience Offline
Member

Posts: 213
Threads: 1
Joined: Aug 2011
Reputation: 2
#2
RE: Problem with checkpoints

http://wiki.frictionalgames.com/hpl2/amn..._functions Wrote:
CheckPoint(string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

Sets a checkpoint at which the player will respawn in case he dies.
Callback syntax: void MyFunc(string &in asName, int alCount)
Count is 0 on the first checkpoint load!
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

CheckPoint("StartUpCP", "PlayerStartArea_1", "ResetMap", "DeathHint", "DescriptionOne");

So you make a startpoint where you want the player to respawn, set up a asCallback to reset the monster event, even a death note if you want.
09-08-2011, 03:08 AM
Find


Messages In This Thread
Problem with checkpoints - by Max504 - 09-08-2011, 02:10 AM
RE: Problem with checkpoints - by MegaScience - 09-08-2011, 03:08 AM
RE: Problem with checkpoints - by Max504 - 09-08-2011, 05:14 AM



Users browsing this thread: 1 Guest(s)