UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Background Music

broken avatar :(
Created 7 years ago
by OptomusPrime22
0 Members and 1 Guest are viewing this topic.
2,254 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 January 2016
Last active: 7 years ago
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
OptomusPrime22's Contact & Social Links
How would I put some back ground music? I want this music to repeate all the time but I want it quite and such, as of right now it is pretty quite but I don't know how to have it looping or implement it into my map.
Marked as best answer by OptomusPrime22 7 years ago
broken avatar :(
×
broken avatar :(
Location: nzChristchurch
Date Registered: 8 June 2014
Last active: 6 years ago
Posts
77
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Can I do this?
Signature
×
IDontEvenKnow's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
void <entity> PlaySound(<aliasname>)
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 3 September 2016
Last active: 6 years ago
Posts
25
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ect0's Groups
ect0's Contact & Social Links
void <entity> PlaySound(<aliasname>)

that made 0 sense atleast give us an insight of what void and all that stuff means
broken avatar :(
×
broken avatar :(
Location: us?
Date Registered: 21 August 2016
Last active: 2 years ago
Posts
80
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
All0utWar's Groups
All0utWar's Contact & Social Links
Choose whatever music you want to add. Create a soundalias for it inside user_aliases.csv and make it looping here as well. Then in a script call it like so.

Code Snippet
Plaintext
function bgmusic()
{
player playSound("YOUR_SOUND_ALIAS");
}
broken avatar :(
×
broken avatar :(
Location: nzChristchurch
Date Registered: 8 June 2014
Last active: 6 years ago
Posts
77
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Can I do this?
×
IDontEvenKnow's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
that made 0 sense atleast give us an insight of what void and all that stuff means

It makes perfect sense to anyone with a reasonable amount of programming knowledge.

void <entity> PlaySound(<aliasname>)

void - Returns nothing
<entity> - Use this on an entity, such as a player, script model or script brushmodel etc
PlaySound - A game function called PlaySound (duh)
<aliasname> - the name of the alias you want to play.

It's not that bad.
https://steamcommunity.com/sharedfiles/filedetails/?id=842624971

My specific guide on it.

 
Loading ...