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

How to have ambient sounds when an area is entered

broken avatar :(
Created 11 years ago
by ProRevenge
0 Members and 1 Guest are viewing this topic.
2,322 views
broken avatar :(
×
broken avatar :(
Location: gbEast Midlands
Date Registered: 7 February 2015
Last active: 5 years ago
Posts
643
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Donations massively appreciated: paypal.me/DanT98
Signature
Stranded
Nacht Der Untoten: Reimagined
Encampment
Encampment V2: BO3 Mod

Mapper and Weapon Porter - I release what I can of my work for the community to enjoy :)
×
ProRevenge's Groups
Mapper Has released one or more maps to the UGX-Mods community.
ProRevenge's Contact & Social LinksProRevenge
I have the MOTD ambient music, and it would suit the underground areas of my map, How would I go about having certain sounds play when an area is entered?
broken avatar :(
×
broken avatar :(
Location: gbEast Midlands
Date Registered: 7 February 2015
Last active: 5 years ago
Posts
643
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Donations massively appreciated: paypal.me/DanT98
×
ProRevenge's Groups
Mapper Has released one or more maps to the UGX-Mods community.
ProRevenge's Contact & Social LinksProRevenge
Or even have sounds play when a trigger is touched?
Marked as best answer by ProRevenge 11 years ago
broken avatar :(
×
broken avatar :(
Location: usLuketown
Date Registered: 8 June 2013
Last active: 2 years ago
Posts
292
Respect
Forum Rank
Mr. Elemental
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Welcome to Luketown
×
sevengpluke's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
sevengpluke's Contact & Social Linkssevengplukedalukesevengplukesevengplukesevengpluke
Make a trigger radius in the spot you want it to activate at and try the code below.
Add the below code to the bottom of your mapname.gsc.

Code Snippet
Plaintext
amb_trig()
{
trig = getent ( "amb1", "targetname" );//give the trigger radias these kvp's
trig waittill ( "trigger");
wait 1;
PlaySoundAtPosition("amb1_sound", (0, 0, 0));//change alias here
wait 1;//change this to sound legnth
trig delete();
}

Then Add this
Code Snippet
Plaintext
thread amb_trig();
under
Code Snippet
Plaintext
maps\_zombiemode::main();


I is scripting nooby :nyan:
Last Edit: April 20, 2015, 10:10:37 pm by sevengpluke
broken avatar :(
×
broken avatar :(
Location: gbEast Midlands
Date Registered: 7 February 2015
Last active: 5 years ago
Posts
643
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Donations massively appreciated: paypal.me/DanT98
×
ProRevenge's Groups
Mapper Has released one or more maps to the UGX-Mods community.
ProRevenge's Contact & Social LinksProRevenge
Where would I put that script for it to work?
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 3 months ago
Posts
1,190
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
Where would I put that script for it to work?

At the bottom of mapname.gsc
It says in his instructions.
broken avatar :(
×
broken avatar :(
Location: gbEast Midlands
Date Registered: 7 February 2015
Last active: 5 years ago
Posts
643
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Donations massively appreciated: paypal.me/DanT98
×
ProRevenge's Groups
Mapper Has released one or more maps to the UGX-Mods community.
ProRevenge's Contact & Social LinksProRevenge
That wasnt there before, either way i think he edited the instructions in, either way, i know now, so I will sort this tomorrow when I get back on my PC

Double Post Merge: April 21, 2015, 08:23:54 pm
Ok, I have several triggers for different sounds set up by copying the script and adjusting names, but for some reason the sounds only play when activated in the order they are in the script? is there any way to fix this?
The script looks like this:
Code Snippet
Plaintext
amb_trig()
{
trig = getent ( "cellblock", "targetname" );//give the trigger radias these kvp's
trig waittill ( "trigger");
wait 1;
PlaySoundAtPosition("cellblock", (0, 0, 0));//change alias here
wait 30;//change this to sound legnth
trig delete();

trig = getent ( "docks", "targetname" );//give the trigger radias these kvp's
trig waittill ( "trigger");
wait 1;
PlaySoundAtPosition("docks", (0, 0, 0));//change alias here
wait 36;//change this to sound legnth
trig delete();
Last Edit: April 21, 2015, 08:23:54 pm by ProRevenge
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
trig waittill("sounddone"); by the way also WaW has built-in ambient music using triggers.

 
Loading ...