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

Adding sounds to fx?

broken avatar :(
Created 12 years ago
by Ege115
0 Members and 1 Guest are viewing this topic.
1,679 views
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Hello fellow UGX members!

I just got a simple question. How do I add sounds to all the fx? Do I have to make a script origin or a struct in radiant and make a script like, let's say I add sound to fire.

Code Snippet
Plaintext
fire()
{
fire_sound = getent ("fire_sound", "targetname");
fire_sound PlayLoopSound("small_00", fire_sound.origin);
}
(small_00 is a name of a fire sound that I found)

I doubt that I will have to make a script for adding fx sound because I have never seen anybody script the fx sounds like this.
Or is there a way that I am supposed to do instead other than making a whole script for all the sounds?

Thanks in advance.
Marked as best answer by Ege115 12 years ago
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 6 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Scripter Elite
My Groups
More
×
YaPh1l's Groups
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 2 years ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115

 
Loading ...