I have a neat chamber animation for my gun, and I was wondering if I could use keyframe reached inorder to play a sound from a specific keyframe. Would I have to name my keyframe a specific name? How would I do this? I would really like to learn from this, thanks.
my gun that i need sound for: https://gyazo.com/d883d2e8f5c04167e7da5c7456d9b848
You would need to use GetMarkerReachedSignal
. You can also use KeyframeReached
, but that is deprecated, so use GetMarkerReachedSignal
.
You can read more about GetMarkerReachedSignal
here.