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
Music problem...
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#2
RE: Music problem...

An example? Sure.


void OnStart() {
AddEntityCollideCallback("Player", "CollisionArea", "MusicPunch", true, 1);
}

void MusicPunch(string &in asParent, string &in asChild, int alState) {
PlayMusic("MUSIC.ogg", false, .8f, 2, 2, false);
AddTimer("", 6, "PunchyLook");
StartPlayerLookAt("AREATOLOOKAT", 1, 1, "");
}

void PunchyLook(string &in asTimer) {
//Add Patrol Nodes For Baddie Here
SetEntityActive("MONSTERMAN", true);
StopPlayerLookAt();
}


Note- didn't test this yet so they may or may not be typos.

Insanity. Static.
01-17-2012, 08:25 PM
Find


Messages In This Thread
Music problem... - by LocalParty - 01-17-2012, 07:23 PM
RE: Music problem... - by Juby - 01-17-2012, 08:25 PM
RE: Music problem... - by LocalParty - 01-17-2012, 08:28 PM
RE: Music problem... - by ZyLogicX - 01-17-2012, 08:50 PM
RE: Music problem... - by LocalParty - 01-17-2012, 09:20 PM
RE: Music problem... - by SilentStriker - 01-17-2012, 09:48 PM
RE: Music problem... - by LocalParty - 01-17-2012, 10:00 PM
RE: Music problem... - by Statyk - 01-17-2012, 10:03 PM



Users browsing this thread: 1 Guest(s)