Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help trigger door monster comes up
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Help trigger door monster comes up

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


Attached Files
.png   Help.png (Size: 264.25 KB / Downloads: 81)

(This post was last modified: 07-29-2011, 02:34 PM by Kyle.)
07-29-2011, 02:32 PM
Find


Messages In This Thread
Help trigger door monster comes up - by ZyLogicX - 07-29-2011, 02:19 PM
RE: Help trigger door monster comes up - by Kyle - 07-29-2011, 02:32 PM



Users browsing this thread: 1 Guest(s)