Let me get one thing straight then
A PlayerStartArea is an area that you start at, by f.x. a checkpoint.
You made it so when the player collides with this area, the function that makes the checkpoint calls.
What you need to understand is, that a collide function work when Entity_1 collides with Entity_2. You are not making it a checkpoint just because you put the PlayerStartArea inside it.
Instead of having this function "
AddEntityCollideCallback("Player", "PlayerStartArea_2", "Checkpoint", true, 1);" inside the OnEnter, then just put "
CheckPoint ("", "PlayerStartArea_2", "EndGame", "Ending", "Credits");" inside the OnEnter.
But you see:
"Ending", "Credits" <-- These 2 are not correct.
If you look in the function
void 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 fileasDeathHintEntry - the entry in the .lang file
Those 2 corresponds to
asDeathHintCat - the category of the death hint message to be used in the .lang file
asDeathHintEntry - the entry in the .lang file
Which are the category for the DeathHint and the Entry for the DeathHint, which you can find in your .lang file.
You cannot put the credits inside these files, just to make it call the credits.
This only works with the DeathHints.
Therefore you should make a deathhint category and entry inside your .lang file and put them inside the checkpoint line instead
I hope you read this, and understood it.
EDIT:
Your checkpoint syntax is also wrong.
You see this: Callback syntax: void
MyFunc(string &in asName, int alCount) means that's what you should write, instead of
(string &in asParent, string &in asChild, int alState) in a checkpoint function
Trying is the first step to success.