The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
how to add music when I start my CS?
Demondays1 Offline
Member

Posts: 57
Threads: 7
Joined: Jun 2012
Reputation: 0
#1
how to add music when I start my CS?

I was wondering, I tried looking at the scripts but I am just not doing it correctly?

This is what I have:


void OnStart()
{
StopMusic(60, 1);
PlayMusic("brandon2.ogg", false, 1, 0, 10, false);

}

And yes, I do have my brandon2.ogg in the music folder.


What StopMusic does:

afFadeTime - time in seconds until music stops
alPrio - the priority of the music that should stop


What PlayMusic does:

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 - highest, 1 - lower, etc

Intel HD Lag fix: tiny.cc/pyv1gw
(This post was last modified: 06-14-2012, 04:20 AM by Demondays1.)
06-14-2012, 04:19 AM
Find


Messages In This Thread
how to add music when I start my CS? - by Demondays1 - 06-14-2012, 04:19 AM



Users browsing this thread: 1 Guest(s)