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:
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!
asked May 02 '16 at 11:01 AM in Blueprint Scripting
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. :)
answered May 02 '16 at 11:10 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here