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
how make music stop and make player freeze
Hartmann Offline
Member

Posts: 52
Threads: 18
Joined: Jun 2012
Reputation: 0
#3
RE: how make music stop and make player freeze

(07-30-2012, 02:23 AM)ksnider Wrote: First of all, change:

void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("03_paper_daniel02.ogg", true, 0.8, 2, 0, true);

}

To:

void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("03_paper_daniel02.ogg", true, 0.8, 2, 0);
}

"PlayMusic" only has five parameters.

To stop the music when you leave the map, move "StopMusic" into "void OnLeave()". It should look like this.

////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(1,0);
}
thanks you very much sir. now how to i make a player freeze? i would it to be in here. it should be 6 seconds
void LightsOut_2(string &in asTimer)
{
StartPlayerLookAt("wall_door_frame_6", 10, 10, "");
AddTimer("StopLook_1", 6, " KillTheLights_1");
SetPlayerActive(false);
}
07-30-2012, 10:30 AM
Find


Messages In This Thread
RE: how make music stop and make player freeze - by Hartmann - 07-30-2012, 10:30 AM



Users browsing this thread: 1 Guest(s)