Frictional Games Forum

Full Version: Help trigger door monster comes up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My friend needs help in triggering a monster when he opened an unlocked door, how does he do this?
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)

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