• Register
Forum Thread
  Posts  
Could someone help me with an Amnesia scripting problem? (Forums : Coding & Scripting : Could someone help me with an Amnesia scripting problem?) Locked
Thread Options
Sep 30 2014 Anchor

Maybe this one is kind of obvious, but since I'm new to scripting, I could use some help. I'm getting an error saying there's an unexpected end to file. I used this video: Youtube.com. Here's the script:

void OnStart()

{ TeleportPlayer("Intro_0");
FadeOut(0);
SetPlayerActive(false);
SetSanityDrainDisabled(true);
ShowPlayerCrossHairIcons(false);

AddTimer("fadein, 3, "TimerIntro");

PlayMusic("carefree.ogg", false, 1, 0, 1, true);
}

void TimerIntro(string ∈ asTimer);
{
if(GetLocalVarInt("Intro") < 4) {

if(asTimer == "fadein") {
TeleportPlayer("Intro_" + GetLocalVarInt("Intro"));
FadeIn(1);
AddTimer("fadeout", 4, "TimerIntro");
}

if(asTimer == "fadeout") {
FadeOut(1);
AddTimer("fadein", 1, "TimerIntro");
AddLocalVarInt("Intro", 1);
}
}
else
{
TeleportPlayer("PlayerStartArea_1");
FadeIn(2);
SetPlayerActive(true);
SetSanityDrainDisabled(false);
ShowPlayerCrossHairIcons(true);
PlayMusic("carefree.ogg", false, 1, 0, 2, true);
}
}

Edited by: TheUltimateWydness

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.