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
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#2
RE: Problem with patrol nodes

Maybe this helpsSmile
Spoiler below!

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, "");
AddEnemyPatrolNode("ScareTwoMonster", "ScareTwoNodeTwo", 30, ""); StartPlayerLookAt("ScareTwoMonster", 5.0f, 6.0f, "");
AddTimer("ScareTwo", 8.0f, "ScareTimerTwo");
}

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

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



When Life No Longer Exists
Full-conversion mod
10-16-2011, 11:21 AM
Website Find


Messages In This Thread
RE: Problem with patrol nodes - by Unearthlybrutal - 10-16-2011, 11:21 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)