#so i have to create 3 inputs with 0 1
1 messages ยท Page 1 of 1 (latest)
Making this into a thread ๐
Are you trying to set the state of your MetaSound graph whenever it plays?
If that is the case, it may be better to re-think how you have your graphs set up.
It's generally easier to maintain and tweak if you have the following structure
Parent MetaSound Graph
- This contains your default logic, like
OnPlay,WavePlayer,Audio Out
Preset (aka Child) graphs of all sound types that would use similar logic just use different waves.
In your case, I think it would be cleaner for you to do that. I'll try and get some photos here to help clear it up.
Generally though you want to avod mega sounds if you can
i just want to make a selector, by index what type of sounds arrays to play
Fair! You have a few options
-
Do it like I mentioned above and let the blueprints do the switching logic
-
Create a new Input Trigger Node Called
PlaySound
- Then replace your
OnPlaywith that. - Then in BP, when you set your state, do so and then execute your trigger
PlaySound
- Depending on the lifetime of your sound, you may beable to just use your Int Input. When you pull off of the Int node, you can call a node called
TriggerOnValueChangeThis will call an event whenever the int changes, but it won't triggerOnPlaysince the value did not change
I'm just loading up editor now to get some examples up for yuo
so i have to create 3 inputs for each state
You do not. Least amount of inputs is I think 2
omg i think is better just to make more meta sounds file and to change it in blueprint when need because this selector is impossible to make it work