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
Waterlurker problems.
ammislol Offline
Junior Member

Posts: 24
Threads: 6
Joined: Feb 2012
Reputation: 0
#1
Waterlurker problems.

Hello.

I have a water room, with a waterlurker in it. In the room i have a key, and when i pick up the key - the waterlurker gets active. but if i leave this area i can still hear him (and the panicsound). Allllllllllll the time.. am i doing something wrong? Please help me, thanks in advance!
(This post was last modified: 02-22-2012, 08:02 PM by ammislol.)
02-21-2012, 04:42 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Waterlurker problems.

You can just make him active when you enter the certain area. Make a ScriptArea around the whole place and in the use this: (replace names to what your names are)

void OnStart()
{
AddEntityCollideCallback("Player", "script", "monsteractive", false, 0);
}

void monsteractive(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("monster", true);

}

02-21-2012, 04:54 PM
Find
ammislol Offline
Junior Member

Posts: 24
Threads: 6
Joined: Feb 2012
Reputation: 0
#3
RE: Waterlurker problems.

(02-21-2012, 04:54 PM)flamez3 Wrote: You can just make him active when you enter the certain area. Make a ScriptArea around the whole place and in the use this: (replace names to what your names are)

void OnStart()
{
AddEntityCollideCallback("Player", "script", "monsteractive", false, 0);
}

void monsteractive(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("monster", true);

}
Oh! Okay, awesome! Thank you Smile
02-21-2012, 05:03 PM
Find




Users browsing this thread: 1 Guest(s)