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
ZyLogicX Offline
Member

Posts: 245
Threads: 24
Joined: May 2011
Reputation: 6
#1
Help trigger door monster comes up

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

Beyond the Mountains of Madness [15%]
This forum is dying.
07-29-2011, 02:19 PM
Find Reply
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: 24)

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




Users browsing this thread: 1 Guest(s)