Frictional Games Forum (read-only)

Full Version: Credits/Ending The Game [Resolved]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need it for a demo I'm making and I would like to know how make credits appear and the game finish when the player enters a area Huh
Thanks!
StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);

asMusic - the music to play (including .ogg)
abLoopMusic - determines whether the music should loop
asTextCat - the category to be used in the .lang file (Like <CATEGORY Name = "Credits">)
asTextEntry - the entry in the .lang file (<Entry Name = "Credits">)
alEndNum - Amnesia has 3 different endings and displayed a code at the bottom. Determines which code is displayed (Use -1 if you don't want one)

Example:
In Level Script -
StartCredits("ending_daniel.ogg", false, "Endings", "Credits", -1);

In .lang File -
<CATEGORY Name = "Endings">
<Entry Name = "Credits">CREDITS GO HERE</Entry>
</CATEGORY>