Frictional Games Forum (read-only)
Torture Rooms Sanity - 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: Torture Rooms Sanity (/thread-8899.html)



Torture Rooms Sanity - Paulpolska - 07-01-2011

When I Leave ScriptArea2 Timer work all the time. I try used script from original map but I have the same problem

Code:
//SCRIPTAREA1
void Zgroza(string &in asTimer)
{
FadeImageTrailTo(1.2f, 0.5f);
PlaySoundAtEntity("", "ui_torture.ent", "Player", 10, true);
GiveSanityDamage(1, false);
AddTimer("", 4.0, "Zgroza");
}

//SCRIPTAREA2
void Strach2(string &in asParent, string &in asChild, int alState)
{
RemoveTimer("Zgroza");
}



RE: Torture Rooms Sanity - rojkish - 07-01-2011

Try using AddTimer("Zgroza", 4.0, "Zgroza"); instead of the one you're using now. RemoveTimer(string& asName); uses the name of the timer, but you've set that to "", therefor, it doesn't work.


RE: Torture Rooms Sanity - Paulpolska - 07-01-2011

Ohh I see i'm stupid ;]


RE: Torture Rooms Sanity - Paulpolska - 07-02-2011

No, is still as was ;/


RE: Torture Rooms Sanity - Hardarm - 07-03-2011

That's the name of the timer that you can leave it be.
This is the error:

ui_torture.ent.

It's ui_torture.snt actually, ent is another type of file, that's why it isn't working Wink

And if it isnt still working I need a bigger piece of script. Wink


RE: Torture Rooms Sanity - Paulpolska - 07-03-2011

No sorry this is not reason


RE: Torture Rooms Sanity - Hardarm - 07-03-2011

It is an error from the sound tho so I solved the sound actually. Send me a bigger piece of script please..


RE: Torture Rooms Sanity - rojkish - 07-04-2011

(07-03-2011, 10:02 PM)Hardarm Wrote: It is an error from the sound tho so I solved the sound actually. Send me a bigger piece of script please..

His problem is that the TIMER isn't getting removed. Get it? You don't need a bigger piece of script. Everything works out fine, he can play and whatsoever, but the timer doesn't get removed by his functions nr. 2.