The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script Help Waterlurker not reacting to triggers?
ZyLogicX Offline
Member

Posts: 245
Threads: 24
Joined: May 2011
Reputation: 6
#1
Waterlurker not reacting to triggers?

So I got this map with water... and yes... it is liquid... Secondly, I have to Waterlurkers in there with the names "water1" and "water2" (without quotes)... Then I have an script area called "Waterlurk" But for some reason...these monster are already triggered as soon as I spawn in the map, which is what I dont want ofcourse.... My script is here.... Do you see what the problem is?

Script:


void OnEnter()
{
PlayMusic("ambience.ogg", true, 2, 2, 0, true);
PlaySoundAtEntity("","general_rain_long.snt", "Player", 0, true);
}

void OnStart()
{
AddEntityCollideCallback("Player", "Monster_Quest_Area", "GetMonsterQuest", true, 1);
AddEntityCollideCallback("Player", "Monster_Complete_Area", "FinishMonsterQuest", true, 1);
AddEntityCollideCallback("Player", "Bridge_Quest_Area", "GetBridgeQuest", true, 1);
AddEntityCollideCallback("Player", "Bridge_Complete_Area", "FinishBridgeQuest", true, 1);
AddEntityCollideCallback("Player", "Damn_Quest_Area", "GetDamnQuest", true, 1);
AddEntityCollideCallback("Player", "Damn_Complete_Area", "FinishDamnQuest", true, 1);
AddEntityCollideCallback("Player", "Torch_Quest_Area", "GetTorchQuest", true, 1);
AddEntityCollideCallback("Player", "Torch_Complete_Area", "FinishTorchQuest", true, 1);
AddEntityCollideCallback("Player", "waterlurk", "Func01", true, 1);
AddEntityCollideCallback("Player", "waterlurk2", "Func02", true, 1);
}

void Func01(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("water1", true);
}

void Func02(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("water2", true);
}

void GetMonsterQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("monsterquest", "MonsterQuest");
}
void FinishMonsterQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("monsterquest", "MonsterQuest");
}
void GetBridgeQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("bridgequest", "BridgeQuest");
}
void FinishBridgeQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("bridgequest", "BridgeQuest");
}
void GetDamnQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("damnquest", "DamnQuest");
}
void FinishDamnQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("damnquest", "DamnQuest");
}
void GetTorchQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("torchquest", "TorchQuest");
}
void FinishTorchQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("torchquest", "TorchQuest");
}

void OnLeave()
{
SetupLoadScreen("LoadingText", "hope", 0, "hope.jpg");
}

Beyond the Mountains of Madness [15%]
This forum is dying.
12-10-2011, 02:47 PM
Find


Messages In This Thread
Waterlurker not reacting to triggers? - by ZyLogicX - 12-10-2011, 02:47 PM



Users browsing this thread: 1 Guest(s)