Background Music

broken avatar :(
Created 1342 days ago
by OptomusPrime22
0 Members and 1 Guest are viewing this topic.
1,543 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 January 2016
Last active: 1250 days 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 on Today at 05:23:33 am
broken avatar :(
×
broken avatar :(
Location: nzChristchurch
Date Registered: 8 June 2014
Last active: 859 days 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
My [You are not allowed to view external links. Register or Login to see them]
My [You are not allowed to view external links. Register or Login to see them]
×
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: 991 days 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: 13 days 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.

function bgmusic()
{
player playSound("YOUR_SOUND_ALIAS");
}
broken avatar :(
×
broken avatar :(
Location: nzChristchurch
Date Registered: 8 June 2014
Last active: 859 days 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.
[You are not allowed to view external links. Register or Login to see them]

My specific guide on it.

 

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