Playing sound onclick

Hello all,

I’m trying to recreate the Space Quest interface where you right click to change your action and depending on which action you have selected will give you different responses. My example is currently walk and smell. I have it setup so when I right click my action changes and i can switch from walking to smelling when I click on things compared to moving the character. I’m having difficulty playing the sound when I have my smell action selected. What I’ve done is make my scene and then add in a SoundBox actor over items that I want to have specific responses to, else it will play a default sound.

SoundBox

Selection change

SmellLocation

21645-smelllocation.png

Switch and Movement

Smell Case

No I have found my solution to this. In my function that was calling the objects play sound method I realized I had to take my Hit Result, break it, then take my Hit Actor and cast it to my object, then from that object call it’s play sound method.

Hello EvilCanadian,

I apologize for the late response, your question seemed to slip through the cracks unintentionally. I was just checking in to see if you still needed help with your issue, or if you have any other questions?

Thank you,

Awesome!

It is always good to see our users finding solutions to their own issues!

Let us know if you have any other questions.

Cheers,