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

stop loop sound

broken avatar :(
Created 8 years ago
by jei9363
0 Members and 1 Guest are viewing this topic.
1,711 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 June 2013
Last active: 1 year ago
Posts
1,005
Respect
Forum Rank
Zombie Colossus
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Signature
Hey if you had tons of fun on playing my maps please DONATE :)

play ESTATE now, and claim your mansion back from the undead!
×
jei9363's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
jei9363's Contact & Social Linksjei9363jei9363jayingardia
trying to add final details to my map and am trying to do the meteor sounds. The sound takes a while to stop though?

Code Snippet
Plaintext
	meteor_origin thread play_loop_sound_on_entity( "meteor_loop" );

self waittill("trigger",user);

meteor_origin thread stop_loop_sound_on_entity( "meteor_loop" );
Marked as best answer by jei9363 8 years ago
broken avatar :(
×
broken avatar :(
RadihaX
Location: caCanada
Date Registered: 2 September 2012
Last active: 3 years ago
Posts
978
Respect
Forum Rank
The Decider
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
Signature
Overrun
Lockdown
Overrun (Black Ops Mod)
Snowglobe
Leviathan
Abandoned School
Ski Resort
Leviathan Redux
×
JBird632'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.
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
Community 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
JBird632's Contact & Social LinksJBird632JBird632JBird632JBird632JBird632Mapper
Well first of all I don't see the point in using treyarch's function - just a bunch of added stuff you don't even need. All you need to do is:
Code Snippet
Plaintext
meteor_origin playloopsound( "meteor_loop" );
self waittill("trigger",user);
meteor_origin stoploopsound();
You issue though is likely that your alias for your sound is probably setup as a normal sound and not looping - so the game has to loop all the way through the sound before finishing (that's why it would take a while to end the sound). To fix that just set the alias to looping in the soundalias that your sound is in.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 June 2013
Last active: 1 year ago
Posts
1,005
Respect
Forum Rank
Zombie Colossus
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
×
jei9363's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
jei9363's Contact & Social Linksjei9363jei9363jayingardia
Well first of all I don't see the point in using treyarch's function - just a bunch of added stuff you don't even need. All you need to do is:
Code Snippet
Plaintext
meteor_origin playloopsound( "meteor_loop" );
self waittill("trigger",user);
meteor_origin stoploopsound();
You issue though is likely that your alias for your sound is probably setup as a normal sound and not looping - so the game has to loop all the way through the sound before finishing (that's why it would take a while to end the sound). To fix that just set the alias to looping in the soundalias that your sound is in.

that did it thanks man :)

 
Loading ...