Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Waterlurker problems.
Author Message
ammislol Offline
Junior Member

Posts: 24
Joined: Feb 2012
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #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 all posts by this user Quote this message in a reply
ammislol Offline
Junior Member

Posts: 24
Joined: Feb 2012
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)