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"

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?

Product Version: UE 4.21
Tags:
more ▼

asked Mar 03 '19 at 05:55 PM in Blueprint Scripting

avatar image

MattStH
43 25 29 38

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

2 answers: sort voted first

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.

alt text

capture.png (98.0 kB)
more ▼

answered Mar 03 '19 at 09:53 PM

avatar image

ThompsonN13
10.1k 33 9 23

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

hello. try this : hope this helpsalt text

more ▼

answered Mar 03 '19 at 10:18 PM

avatar image

Shadow Boss12
181 1 3 5

avatar image MattStH Mar 04 '19 at 01:06 AM

Hi there, so once the physics has been set.

Is there a way to say that if the physics object is moving at all based on a certain speed or velocity to play a sound? and maybe change the volume too?

As if a ball is rolling after its been hit.

(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