(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.