07-29-2011, 02:19 PM
07-29-2011, 02:32 PM
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.
(stupid image won't upload... Picture in attachment)
That should work.
(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.