Frictional Games Forum (read-only)
Wind Scare script problem! - 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: Wind Scare script problem! (/thread-9262.html)

Pages: 1 2


RE: Wind Scare script problem! - HumiliatioN - 07-20-2011

(07-20-2011, 02:13 PM)MrCookieh Wrote: you forgot two } at the end.

replace your whole void LoopyTimerCounting with this:

Code:
void LoopyTimerCounting(string &in asTimer)
{AddLocalVarInt("Stage", 1);
float fEventSpeed = 0.5f;
switch(GetLocalVarInt("Stage"))
{ case 1:
SetSwingDoorClosed("WindDoor", false, false);
SetSwingDoorDisableAutoClose("WindDoor", true;
AddPropForce("WindDoor", 0, 0, 230.0f, "world");
FadeInSound("Sound_1", 2.0f, true);
break;
}
if(GetLocalVarInt("Stage") < 10){ AddTimer("thisloopsthetimer", fEventSpeed, "LoopyTimerCounting");}
}

Nope its okay check out this i found the problem. Very little mistake.

SetSwingDoorDisableAutoClose("WindDoor", true;

SetSwingDoorDisableAutoClose("WindDoor", true);

-.-

Anyways thanks for helping Smile