Hey Guys. I need to know how to play credits when you die. But only at one point (SPOILER......)
Ending of my custom story.
Also How do I even make some credits? I'm guessing in the extra_english.lang and make a category named "Credits" and then add entrys? or just one entry.
Thanks
-Grey Fox
I think there was a function like if the game sees you got 0 hp left its going to run a function.
But i have no clue about the credit part.
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);
that and
StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);
All you need. Check what each string etc. means in the Script functions page
Half way down my post in this thread, it'll talk about setting up the credits.
http://www.frictionalgames.com/forum/thr...l#pid83125
To check if the player's dead, this might work:
Code:
void OnStart()
{
if (GetPlayerHealth() <= 0)
{
// Insert Credits command function here.
}
}
You can put this code wherever you want to like if you want the credits to start when the player reaches a certain point or something. I hope this helps at the very least.
Edit: CRAP! Ninja'd! xD