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
LDOriginal Offline
Junior Member

Posts: 35
Threads: 7
Joined: Oct 2014
Reputation: 0
#3
RE: Help getting music to play in map

(02-01-2015, 01:57 PM)Neelke Wrote: If you want music to play, then you need to use PlayMusic script.

void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

Plays music.

asMusicFile - the music to play + extension .ogg
abLoop - determines whether a music track should loop
afVolume - volume of the music
afFadeTime - time in seconds until music reaches full volume
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - lowest, 1 - higher, etc.
abResume - if true, playback will be continued from where the track stopped after the call to StopMusic(); if false, the track will be restarted.

But what exactly do you want to be played?

That's not really important right now, i will find something i feel fits, i just don't know how to place the script within my script. :/ I see now i pasted the void PlaySoundAtEntity wich is wrong ofcourse, i meant to say i've tried with the void PlayMusic script. Its just the scripting itself and placements etc that confuces me.
(This post was last modified: 02-01-2015, 02:03 PM by LDOriginal.)
02-01-2015, 02:01 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 LDOriginal - 02-01-2015, 02:01 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: 1 Guest(s)