Frictional Games Forum (read-only)
onEnter does nothing? [SOLVED] - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: onEnter does nothing? [SOLVED] (/thread-4836.html)



onEnter does nothing? [SOLVED] - DamnNoHtml - 09-29-2010

Hey there, I want a room in my story to be visited multiple times. Each time you visit, I want a simple thing to happen:

Code:
void onEnter()
{
    PlayMusic("ending_daniel.ogg",false, 100, 1, 1, false);
    FadeSepiaColorTo(1, 2);
}

Why in the hell would that not work? And don't say put it in void onStart, because that only runs once.


RE: onEnter does nothing? - Placeable - 09-29-2010

Because its OnEnter() with a capital O, not onEnter().
Try it.


RE: onEnter does nothing? - DamnNoHtml - 09-29-2010

[Image: facepalm.jpg]