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] Musik won't play [Solved]
ethics Offline
Member

Posts: 51
Threads: 18
Joined: Jan 2014
Reputation: 0
#7
RE: [SCRIPT] Musik won't play

(02-23-2014, 12:00 PM)JustAnotherPlayer Wrote: You're using PlayMusic, but that is the signature of the PlaySoundAtEntity.
Spoiler below!

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

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.


And this it the wrong section. If you want to ask questions regarding CS development go to the Development Support please.

Yeah, i know. But I couldn't find the dev support, because I'm pretty new to the forum.
Sorry!

(02-23-2014, 04:40 PM)DnALANGE Wrote: What JustanotherPlayer means is this in a easyer way!
Quote:PlayMusic("YOURMUSICFILE.ogg", true, 0.7, 2, 1, true);
-
"playdatshiat" ........? This will be another trollstory i guess??

No, a fanstory for a certain Youtuber. I couldnt find a better name/couldn't think of one at this time.
And also, if the script isn't serious, why should it have an influence on the seriousness of the custom story? the normal amnesia player doesn't cae about the script Big Grin

(02-23-2014, 11:08 PM)DnALANGE Wrote:
(02-23-2014, 10:21 PM)davide32 Wrote: PlaySoundAtEntity is correct or I guess
PlayGuiSound(string& asSoundFile, float afVolume);

What are you talking about??....
This guy wants to play MUSIC isn't it?
IF he wants it to be a sound fx or small music file then it's okay!
BUT, if he wants to play the music and make it loop he should use the function PlayMusic.

You can also use ''PlaySoundAtEntity()'', if you place all your sound and music files in the ''sounds''-folder.

(This post was last modified: 02-26-2014, 06:03 PM by ethics.)
02-26-2014, 05:58 PM
Find


Messages In This Thread
[SCRIPT] Musik won't play [Solved] - by ethics - 02-23-2014, 11:26 AM
RE: [SCRIPT] Musik won't play - by ethics - 02-26-2014, 05:58 PM
RE: [SCRIPT] Musik won't play - by DnALANGE - 02-23-2014, 04:40 PM
RE: [SCRIPT] Musik won't play - by davide32 - 02-23-2014, 10:21 PM
RE: [SCRIPT] Musik won't play - by DnALANGE - 02-23-2014, 11:08 PM
RE: [SCRIPT] Musik won't play - by davide32 - 02-24-2014, 01:57 PM
RE: [SCRIPT] Musik won't play - by Mudbill - 02-26-2014, 06:33 PM
RE: [SCRIPT] Musik won't play - by RedKnight - 02-27-2014, 07:00 AM
RE: [SCRIPT] Musik won't play - by Romulator - 02-27-2014, 07:25 AM



Users browsing this thread: 1 Guest(s)