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.
![[Image: helps.png]](http://imageshack.us/photo/my-images/685/helps.png/)
(stupid image won't upload... Picture in attachment)
That should work.
![[Image: helps.png]](http://imageshack.us/photo/my-images/685/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.
