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
Script Help Credits After Death
AGP Offline
Senior Member

Posts: 448
Threads: 45
Joined: Dec 2012
Reputation: 23
#7
RE: Credits After Death

(01-18-2013, 08:50 AM)junkfood2121 Wrote:
void 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

Check the Engine Scripts.

Thanks! I shall test this out! =D

So these are the scripts I've got in the .hps file.

In the on start section:
AddEntityCollideCallback("Player", "PlayerStartArea_2", "EndCheckpoint", true, 1);

And on their own:

void EndCheckpoint(string &in asParent, string &in asChild, int alState)
{
    CheckPoint ("", "PlayerStartArea_2", "EndGame", "Ending", "Credits");
}

void EndGame(string &in asName, int alCount)
{
StartCredits("", false, "Ending", "Credits", 5);
}

When I reach the point where the player should die, it respawns at the PlayStartArea_1. Are there any errors in here that I'm not seeing?

(This post was last modified: 01-18-2013, 09:16 AM by AGP.)
01-18-2013, 08:52 AM
Find


Messages In This Thread
Credits After Death - by AGP - 01-18-2013, 06:28 AM
RE: Credits After Death - by NaxEla - 01-18-2013, 06:57 AM
RE: Credits After Death - by AGP - 01-18-2013, 07:16 AM
RE: Credits After Death - by FlawlessHappiness - 01-18-2013, 08:03 AM
RE: Credits After Death - by AGP - 01-18-2013, 08:40 AM
RE: Credits After Death - by Linus Ågren - 01-18-2013, 08:50 AM
RE: Credits After Death - by AGP - 01-18-2013, 08:52 AM
RE: Credits After Death - by The chaser - 01-18-2013, 10:11 AM
RE: Credits After Death - by FlawlessHappiness - 01-18-2013, 10:36 AM
RE: Credits After Death - by AGP - 01-18-2013, 10:35 PM
RE: Credits After Death - by FlawlessHappiness - 01-19-2013, 12:05 AM
RE: Credits After Death - by The chaser - 01-19-2013, 12:16 AM
RE: Credits After Death - by FlawlessHappiness - 01-19-2013, 12:32 AM
RE: Credits After Death - by The chaser - 01-19-2013, 08:38 AM
RE: Credits After Death - by AGP - 01-19-2013, 01:24 AM



Users browsing this thread: 1 Guest(s)