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!
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#2
RE: very quick problem!

I don't know how to make the music go away, your script seems to be right but dont forget to click on the grunt1 in the level editor and uncheck the box that says [active], or else he will be activated all the time. that goes for all SetEntityActive unless it's false, when you want it to go away.

EDIT: try that script and if the music still comes try to use

StopMusic(0, 10);

in the ZombieWalk or you might need to add a timer first which then stops the music, like:

void ZombieWalk(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0.01, "MusicStop");
SetEntityActive("grunt1", true);
AddEnemyPatrolNode("grunt1", "path1", 1, "");
AddEnemyPatrolNode("grunt1", "path2", 1, "");
AddEnemyPatrolNode("grunt1", "path3", 1, "");
}

void MusicStop(string &in asTimer)
{
StopMusic(0, 10);
}

(This post was last modified: 06-06-2011, 07:35 AM by Rownbear.)
06-06-2011, 07:06 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)