Play a sound once on event tick used as a Linetrace by Channel

anonymous_user_ab1ea73f
Sat, 12 Aug 2017 16:17:56 +0000
Audio

Hi guys! I have the next question.

I’m using a tick event for a LineTraceByChannel emulating the mouseover event with a ray. Everytime that the ray hit on an specific object a sound should be triggered once.

When I put the node “Spawn sound attached” to play the sound it plays but in a loop. So, i thought about to use “DoOnce” node.

If I use the “DoOnce” node the sound plays once but then not anymore and I need that this sound plays everytime that the ray hit on the object.

I don’t know how to setup the “reset” property of DoOnce because if i use a Branch asking if the sound is playing it doesn’t works.

Any clue?? Thanks!!!

7 posts - 4 participants