05-15-2011, 01:00 AM
05-15-2011, 02:07 AM
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>
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>