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
Problem with enemy not disappearing
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#1
Problem with enemy not disappearing

Sorry for all the questions recently, I bought a new laptop and I lost all the files from my old one, so I forgot how to do most things, anyway the problem is when I walk into the specified area, the character looks at the monster as stated, but the monster doesn't move whatsoever as it is told to.


void OnStart()
{
AddEntityCollideCallback("Player", "ScareOne", "ScareOneCallback", true, 1);
AddEntityCollideCallback("Player", "ScareTwoArea", "ScareTwoCallback", true, 1);
}

void ScareOneCallback(string &in asParent, string &in asChild, int alState)
{
SetLampLit("ScareOneLight", true, true);
SetLampLit("ScareOneLightTwo", true, true);
SetEntityActive("ScareOneMonster", true);
ShowEnemyPlayerPosition("ScareOneMonster");
PlaySoundAtEntity("", "react_scare3.snt", "Player", 20.0f, true);
PlayMusic("LevelOneMusic.ogg", true, 10.0f, 2.0f, 2.0f, true);
SetSwingDoorLocked("ScareOneDoor", true, true);
}

void ScareTwoCallback(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("ScareTwoMonster", "ScareTwoNodeOne", 0.0f, "");
AddEnemyPatrolNode("ScareTwoMonster", "ScareTwoNodeTwo", 30.0f, "");
StartPlayerLookAt("ScareTwoMonster", 5.0f, 6.0f, "");
AddTimer("ScareTwo", 8.0f, "ScareTimerTwo");
}

void ScareTimerTwo(string &in asTimer)
{
StopPlayerLookAt();
}

void OnEnter()
{
}
void OnLeave()
{
}

:Work In Progress:
Insanity
(This post was last modified: 10-18-2011, 03:13 PM by JoeBradleyUK.)
10-16-2011, 10:59 AM
Find


Messages In This Thread
Problem with enemy not disappearing - by JoeBradleyUK - 10-16-2011, 10:59 AM
RE: Problem with patrol nodes - by JoeBradleyUK - 10-16-2011, 11:25 AM
RE: Problem with patrol nodes - by JoeBradleyUK - 10-16-2011, 04:41 PM
RE: Problem with patrol nodes - by JoeBradleyUK - 10-16-2011, 05:15 PM



Users browsing this thread: 1 Guest(s)