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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Despawn water lurker when he eats meat?
DeAngelo Offline
Senior Member

Posts: 263
Threads: 26
Joined: Feb 2013
Reputation: 11
#3
RE: Despawn water lurker when he eats meat?

Thanks, but I was just about to post that I figured it out. I couldn't find the right script because I was searching for "destroy" but it turns out I needed Break. I just put in the following script and it worked like a charm:


SetEntityCallbackFunc("LurkerBait", "EatingLurkerBait");

void EatingLurkerBait(string &in asEntity, string &in asBreak)
{
SetEntityActive("waterlurker_1", false);
SetMessage("Messages", "BusyLurker", 6);
}

This works best since the lurker gets "trapped" in a room (I plan on making some particles of him thrashing around the room once you trap him in it) then the player leaves through a doorway (A safety door with a slow lever, which is why he needed to be trapped.)

However the script you gave is neat. I'll use it if I need to do something similar later. Thanks Smile

A Late Night Drink http://www.moddb.com/mods/a-late-night-drink
Check out my LP channel, CatBearGaming, I take all Custom Story requests!
08-06-2013, 06:53 PM
Find


Messages In This Thread
RE: Despawn water lurker when he eats meat? - by DeAngelo - 08-06-2013, 06:53 PM



Users browsing this thread: 1 Guest(s)