LDOriginal
Junior Member
Posts: 35
Threads: 7
Joined: Oct 2014
Reputation:
0
|
RE: Help getting music to play in map
(02-01-2015, 02:49 PM)Neelke Wrote: 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);
}
Will try this as soon as i get back home. Thank's for giving the time to help.
|
|
02-01-2015, 02:52 PM |
|