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"

Make OnComponentHit act like OnComponentBeginHit

So I noticed there wasn't an "OnComponentBeginHit" and only the "OnComponentHit" which doesn't work for me since I want to play a sound every time someone hits an object and doing this:

alt text

doesn't work because it constantly plays the sound when on the ground (stationary) So I want it to only play the sound once the hit BEGINS, how would I do that?

Thanks in advanced!

Product Version: UE 4.11
more ▼

asked May 02 '16 at 11:01 AM in Blueprint Scripting

avatar image

3 1 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

So if you want to play the sound only once have a look at using a Do Once node which you link the Reset when you want to play the sound again later.

If you want to simply prevent the ball playing a mad amount of times, the sound file option (double click it in content editor) has a setting for Max plays. Setting that to 1 will make sure it doesn't go nuts. Also there is a policy drop down to set various ways it will dupe the sound.

Hope this helps. :)

more ▼

answered May 02 '16 at 11:10 AM

avatar image

1.8k 66 27 90

avatar image CKlidify May 02 '16 at 11:16 AM

How can I make the DoOnce reset once I'm in the air again?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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