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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Patrol Node Help
ThePaSch Offline
Member

Posts: 108
Threads: 11
Joined: Sep 2010
Reputation: 0
#1
Patrol Node Help

Hi,
I set up a path for a grunt and also placed the correct script into the file.
The monster also walks that path just perfectly. The problem is: Instead of disappearing after the last pathnode, it just walks through the entire patrol again, even when it doesn't see me (because I'm hiding in a closet).
Here's the script:

void OnStart()
{
StopMusic(3.0f, 0);
PlaySoundAtEntity("", "door_level_cellar_close.snt", "level_celler_1", 0, false);
PlayMusic("01_amb_darkness.ogg", true, 80, 1, 0, false);
CompleteQuest("00Investigate","00Investigate");  
AddEntityCollideCallback("Player", "activateScare", "ScareZoneEnable", true, 1);
AddEnemyPatrolNode("cellargrunt", "cellar_pn1", 0, "");
AddEnemyPatrolNode("cellargrunt", "cellar_pn2", 0, "");
AddEnemyPatrolNode("cellargrunt", "cellar_pn3", 0, "");
AddEnemyPatrolNode("cellargrunt", "cellar_pn4", 0, "");
AddEnemyPatrolNode("cellargrunt", "cellar_pn5", 0, "");
AddEnemyPatrolNode("cellargrunt", "cellar_pn6", 0, "");
AddEnemyPatrolNode("cellargrunt", "cellar_pn7", 0, "");
AddEnemyPatrolNode("cellargrunt", "cellar_pn8", 0, "");
}
10-21-2010, 06:17 PM
Find


Messages In This Thread
Patrol Node Help - by ThePaSch - 10-21-2010, 06:17 PM
RE: Patrol Node Help - by Zergalag - 10-21-2010, 06:28 PM
RE: Patrol Node Help - by ThePaSch - 10-21-2010, 07:16 PM
RE: Patrol Node Help - by Pandemoneus - 10-21-2010, 06:45 PM
RE: Patrol Node Help - by Zergalag - 10-21-2010, 07:20 PM
RE: Patrol Node Help - by Cellrage - 10-26-2010, 02:28 AM
RE: Patrol Node Help - by ThePaSch - 10-30-2010, 03:13 PM
RE: Patrol Node Help - by house - 10-29-2010, 03:13 PM



Users browsing this thread: 1 Guest(s)