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
very quick problem!
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#1
very quick problem!

I have a zombie/pathnode script set up. I just made it and its pretty simple but I have one problema.
I don't want the zombie to be active before the player hits the area that triggers pathnodes, in other words; Before I move into the area that triggers the zombie to walk on pathnodes, the "a zombie is nearby" music starts playing and that gives the scare away :\ How do I make it so there is no music (or the zombie isn't active) until I get into the script area? Big Grin
here's my script so far:
Quote:AddEntityCollideCallback("Player", "zareaactivate", "ZombieWalk", true, 1);

void ZombieWalk(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt1", true);
AddEnemyPatrolNode("grunt1", "path1", 1, "");
AddEnemyPatrolNode("grunt1", "path2", 1, "");
AddEnemyPatrolNode("grunt1", "path3", 1, "");
}
06-06-2011, 06:17 AM
Find


Messages In This Thread
very quick problem! - by SLAMnesia - 06-06-2011, 06:17 AM
RE: very quick problem! - by Rownbear - 06-06-2011, 07:06 AM
RE: very quick problem! - by SLAMnesia - 06-07-2011, 05:04 PM
RE: very quick problem! - by GraphicsKid - 06-08-2011, 11:29 PM
RE: very quick problem! - by SLAMnesia - 06-09-2011, 04:21 PM



Users browsing this thread: 1 Guest(s)