Hit ball skeletal then mesh make a sound
I have a ball that simulates physics. How can I say in the level BP say if the player hit/collides with this to make a sound?
asked Mar 03 '19 at 05:55 PM in Blueprint Scripting
you will have to have a hit event in either the ball or the player character. then you will have to have a condition that checks the class of the other. then spawn sound.
below is an example of what im talking about. in the picture you will see i have a hit event for the ball, then i use the equal (==) operand on the other actor pin (which returns the actor that hit the ball). if the other actor is equal to the player character (branch node asks this) then we spawn the sound at the balls location.
answered Mar 03 '19 at 09:53 PM
hello. try this : hope this helps
answered Mar 03 '19 at 10:18 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here