Frictional Games Forum (read-only)
Waterlurker problems. - 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: Waterlurker problems. (/thread-13484.html)



Waterlurker problems. - ammislol - 02-21-2012

Hello.

I have a water room, with a waterlurker in it. In the room i have a key, and when i pick up the key - the waterlurker gets active. but if i leave this area i can still hear him (and the panicsound). Allllllllllll the time.. am i doing something wrong? Please help me, thanks in advance!


RE: Waterlurker problems. - flamez3 - 02-21-2012

You can just make him active when you enter the certain area. Make a ScriptArea around the whole place and in the use this: (replace names to what your names are)

void OnStart()
{
AddEntityCollideCallback("Player", "script", "monsteractive", false, 0);
}

void monsteractive(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("monster", true);

}


RE: Waterlurker problems. - ammislol - 02-21-2012

(02-21-2012, 04:54 PM)flamez3 Wrote: You can just make him active when you enter the certain area. Make a ScriptArea around the whole place and in the use this: (replace names to what your names are)

void OnStart()
{
AddEntityCollideCallback("Player", "script", "monsteractive", false, 0);
}

void monsteractive(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("monster", true);

}
Oh! Okay, awesome! Thank you Smile