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
Script Help Help getting music to play in map
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#9
RE: Help getting music to play in map

Grabbing one of your functions here. This is how it's meant to be if you want the music to start when colliding with an area. (I hope I understand you properly.)

void start(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "general_piano01.snt", "Player", 0.0f, false);
PlayMusic("YOUR_MUSIC_FILE_NAME", true, 1.0f, 0, 0, true);
}

If you want it to play every time you enter the map:

void OnEnter()
{
       PlayMusic("YOUR_MUSIC_FILE_NAME", true, 1.0f, 0, 0, true);
}

Derp.
(This post was last modified: 02-01-2015, 02:50 PM by Neelke.)
02-01-2015, 02:49 PM
Find


Messages In This Thread
Help getting music to play in map - by LDOriginal - 02-01-2015, 01:49 PM
RE: Help getting music to play in map - by Neelke - 02-01-2015, 01:57 PM
RE: Help getting music to play in map - by Neelke - 02-01-2015, 02:05 PM
RE: Help getting music to play in map - by Neelke - 02-01-2015, 02:18 PM
RE: Help getting music to play in map - by Neelke - 02-01-2015, 02:49 PM
RE: Help getting music to play in map - by Neelke - 02-01-2015, 09:02 PM
RE: Help getting music to play in map - by Neelke - 02-01-2015, 10:39 PM



Users browsing this thread: 6 Guest(s)