x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Toggle Sounds on trigger

Alright I have been looking around for an answer and I feel that since I can't find it on Google it must be so easy to do but I am just too tired to figure it out.

What I am trying to do is have a safe that has a trigger box around it and I want a sound to play when triggered. I want to make it toggle on and off. I can get a sound to play but can't disable or stop it without destroying it which then wont let it play again.

Product Version: UE 4.11
Tags:
more ▼

asked May 01 '16 at 01:26 AM in Blueprint Scripting

avatar image

BananaClipStudio
19 1 4 6

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

So this is something simple that I just set up. There's a few different ways to go about it. But this is pretty simple. You can switch the overlap event of the box collision with whatever event you want. alt text

more ▼

answered May 01 '16 at 01:33 AM

avatar image

VictorBurgos
2.4k 60 27 111

avatar image BananaClipStudio May 01 '16 at 01:39 AM

See!! I knew I was just tired lol... I forgot about being able to add an audio component. Thanks :)

avatar image VictorBurgos May 01 '16 at 01:40 AM

No problem! Don't forget to upvote the answer also!

(comments are locked)
10|2000 characters needed characters left

Did you try Toggle Active on the Audio Component?

more ▼

answered May 01 '16 at 01:43 AM

avatar image

Nick Jackson
492 16 14 107

avatar image VictorBurgos May 01 '16 at 01:45 AM

Well, seeing how he forgot about Audio Components....

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question