ividyon will never get this done, will he.

Trigger that plays ambient sounds once.

For questions and discussion about UnrealEd, UnrealScript, and other aspects of Unreal Engine design.

Moderators: Semfry, ividyon

User avatar makemeunreal
Banned Banned
Posts: 1294
Joined: 20 Mar 2011, 09:20
Contact:

Subject: Trigger that plays ambient sounds once.

Post Posted: 02 Nov 2013, 08:28

I would like to make a trigger that plays an ambient sound, but just once.
I set it to to TriggerOnceOnly but the sound keep looping.
Last edited by makemeunreal on 02 Nov 2013, 13:17, edited 1 time in total.
"They let us go about our business here, but it is a farce. I know that they are watching us, controlling us. I believe that this once safe haven is as deadly as the surface planet below."

User avatar SteadZ
Skaarj Warlord Skaarj Warlord
Posts: 883
Joined: 04 Mar 2012, 10:52
Location: An error occurred. Please try again later.
Contact:

Subject: Re: Individual ambient suend that plays just once.

Post Posted: 02 Nov 2013, 09:27

For that, you need a SpecialEvent which can be found in the Triggers section of the actor class tree.
To set it up to play a sound, go into the properties -> object then in the initialstate box, select PlaySoundEffect, PlayAmbientSoundEffect or PlayersPlaySoundEffect- it depends how you want it to work ;)
Then in the SpecialEvent part of the SpecialEvent properties, put the sound you want played into the Sound box. Then, set up a trigger, attach the events/tags, and you're all set :D
Hope this helps!
.......
SZ
.......
Image

User avatar makemeunreal
Banned Banned
Posts: 1294
Joined: 20 Mar 2011, 09:20
Contact:

Subject: Re: Trigger that plays ambient sounds once.

Post Posted: 02 Nov 2013, 13:33

It keeps repeating the ambient sound, but okay at all.
"They let us go about our business here, but it is a farce. I know that they are watching us, controlling us. I believe that this once safe haven is as deadly as the surface planet below."

Bleeder91<NL>
Skaarj Assassin Skaarj Assassin
Posts: 147
Joined: 24 Jun 2011, 18:45

Subject: Re: Trigger that plays ambient sounds once.

Post Posted: 02 Nov 2013, 16:19

Best bet is to reimport the sound as a nonlooping one.

User avatar Jigoku
Skaarj Warlord Skaarj Warlord
Posts: 959
Joined: 03 Dec 2010, 00:51
Location: The Backrooms
Contact:

Subject: Re: Individual ambient suend that plays just once.

Post Posted: 02 Nov 2013, 22:44

SteadZ wrote:For that, you need a SpecialEvent which can be found in the Triggers section of the actor class tree.
To set it up to play a sound, go into the properties -> object then in the initialstate box, select PlaySoundEffect, PlayAmbientSoundEffect or PlayersPlaySoundEffect- it depends how you want it to work ;)
Then in the SpecialEvent part of the SpecialEvent properties, put the sound you want played into the Sound box. Then, set up a trigger, attach the events/tags, and you're all set :D
Hope this helps!
.......
SZ
.......
Boy do I feel stupid... I'm working on a map that am mixed about releasing and wanted to know how to do this. W00t!
Trying to get back into the swing of things.

User avatar Draco Nihil
Skaarj Lord Skaarj Lord
Posts: 197
Joined: 06 Jun 2012, 21:18
Location: Independence, Kansas
Contact:

Subject: Re: Trigger that plays ambient sounds once.

Post Posted: 10 Nov 2013, 06:55

Do NOT play sounds that have a sampler loop in them or they will continue playing endlessly until that sound slot is overwritten or you go out of range of the sound to cause the engine to unload it.

Of course this only applies to Galaxy I would hope. Smiftsch's newer OpenAL and FMOD will only make use of sampler loops if they are played on the ambient sound slot so you can use sounds with the loop chunk as one shot sounds but even still... do NOT play looping sounds as one shot as this will NOT work under Galaxy.
“I am the dragon without a name...”

medor
Skaarj Lord Skaarj Lord
Posts: 171
Joined: 07 Jun 2009, 22:58

Subject: Re: Trigger that plays ambient sounds once.

Post Posted: 11 Nov 2013, 14:52

Maybe this UT99 help you
Multiple triggers in one.
-JumperTrigger
-ReturnFlagTrigger
-AutoStartTrigger
-MultiTrigger
-DamageRadiusTrigger
-MoverTrigger
-AmbientSoundControl
-AmbientSoundToggles
-AmbientSoundTurnsOff
-AmbientSoundTurnsOn
-MessageTrigger
-SoundTrigger
-NormalTrigger
-ChanceTrigger
-RandomTrigger
-RemoverTrigger

http://unrealtournament.99.free.fr/foru ... =51&t=2373
[url=https://www.gametracker.com/server_info/77.135.96.69:7777/][img]https://cache.gametracker.com/server_info/77.135.96.69:7777/b_350_20_692108_381007_ffffff_000000.png[/img][/url]

[url=https://www.gametracker.com/server_info/77.135.96.69:5555/][img]https://cache.gametracker.com/server_info/77.135.96.69:5555/b_350_20_692108_381007_ffffff_000000.png[/img][/url]

[url=https://www.gametracker.com/server_info/77.135.96.69:6777/][img]https://cache.gametracker.com/server_info/77.135.96.69:6777/b_350_20_692108_381007_ffffff_000000.png[/img][/url]

[url=https://www.gametracker.com/server_info/77.135.96.69:6666/][img]https://cache.gametracker.com/server_info/77.135.96.69:6666/b_350_20_692108_381007_ffffff_000000.png[/img][/url]

User avatar Shivaxi
Gilded Claw Gilded Claw
Posts: 1916
Joined: 24 Jun 2008, 19:51
Location: Behind You! =P
Contact:

Subject: Re: Trigger that plays ambient sounds once.

Post Posted: 11 Nov 2013, 23:16

I think Bleeder is also making some super master trigger thing for Unreal.
http://img836.imageshack.us/img836/9950/shivavatar2.jpg Image

Waffnuffly: If there is any purpose for the god damned ocean, it is for us to eat it.
Jet_v4.3.5: I want to be Lincoln and kick Satan's ass. Emancipate and Proclimate on his ass.

Bleeder91<NL>
Skaarj Assassin Skaarj Assassin
Posts: 147
Joined: 24 Jun 2011, 18:45

Subject: Re: Trigger that plays ambient sounds once.

Post Posted: 12 Nov 2013, 19:17

hmm, I guess it can be coded with 227's soundduration function...
And ssshhh Shiv that's a secret!

Z-enzyme
White Tusk White Tusk
Posts: 2136
Joined: 13 Nov 2007, 20:01

Subject: Re: Trigger that plays ambient sounds once.

Post Posted: 13 Nov 2013, 11:42

Not any more Bleeder!
DETAILS~!


Who is online

Users browsing this forum: No registered users and 35 guests

Copyright © 2001-2024 UnrealSP.org

Powered by phpBB® Forum Software © phpBB Limited