Credits - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Credits (/thread-19291.html) |
Credits - Storfigge - 11-20-2012 So im kind of done with my map but I'm having some issues with the end credits :S I've been looking on the wiki and searching around the forums here but I still don't understand what to. In .lang I've written <CATEGORY Name="Ending"> <Entry Name="MainCredits"> blablablabal </Entry> </CATEGORY> In my hps file i wrote void OnStart() { AddEntityCollideCallback("Player", "Start_Credits", "MainCredits", true, 1); } void Credits(string &in asParent, string &in asChild, int alState) { StartCredits("my music.ogg", true, "ending", "MainCredits", 4); } void OnEnter() { } void OnLeave() { } I'm a big noob at this so I've just experimented hoping I will get it right... So please tell me what I've done wrong. RE: Credits - GoranGaming - 11-20-2012 void OnStart() { AddEntityCollideCallback("Player", "Start_Credits", "MainCredits", true, 1); } void Credits(string &in asParent, string &in asChild, int alState) { StartCredits("my music.ogg", true, "ending", "MainCredits", 4); } Your function is named wrongly. It should be name as your callback says, "MainCredits" |