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
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#11
RE: Credits After Death

Let me get one thing straight then Smile

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.
(This post was last modified: 01-19-2013, 12:11 AM by FlawlessHappiness.)
01-19-2013, 12:05 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)