Frictional Games Forum (read-only)
I think the syntax is wrong - 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: I think the syntax is wrong (/thread-15080.html)



I think the syntax is wrong - GillFrog - 04-25-2012

Okay, so i want to fade the screen black then fade it back.
I don't get the syntax stuff. (I'm a n00b/idiot.) Sad
May someone help me out?

Here's the script:
Quote:void func_monster_start(string &in asTimer,string &in asParent, string &in asChild, int alState)
{
FadeOut(1);
AddTimer("timer1", 5, "func_monster_start_now");
}

void func_monster_start_now(string &in asParent, string &in asChild, int alState)
{
FadeIn(1);
}



RE: I think the syntax is wrong - SilentStriker - 04-25-2012

Timers have the syntax of string &in asTimer Smile



RE: I think the syntax is wrong - GillFrog - 04-25-2012

(04-25-2012, 02:32 PM)SilentStriker Wrote: Timers have the syntax of string &in asTimer Smile
Thanks!