Frictional Games Forum (read-only)
Help trigger door monster comes up - 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: Help trigger door monster comes up (/thread-9470.html)



Help trigger door monster comes up - ZyLogicX - 07-29-2011

My friend needs help in triggering a monster when he opened an unlocked door, how does he do this?


RE: Help trigger door monster comes up - Kyle - 07-29-2011

Simply put an area (I'll name it "ScriptArea_1" in this example) right outside of the door on the side where the door opens.

[Image: helps.png]
(stupid image won't upload... Picture in attachment)

Code:
void OnStart()
{
     AddEntityCollideCallback("DoorName", "ScriptArea_1", "Func01", true, 1);
}
void Func01(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("MonsterName", true);
}

That should work. Smile