Summary
I have an audio manager verse script that has an audio_player_device added as an editable. The script is simple and should play the sound when the function is called. CueAudioDevice.Play() But I don’t hear a sound from my audio device.
I know the player is working bucause I can add an on trigger event with a button to the audio players “Play” Function and every time I interact with the button the sound works
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Audio
Steps to Reproduce
- Add an Audio device
- Wrive a verse script:
AudioManager := class(creative_device):
@editable
CueAudioDevice:audio_player_device = audio_player_device{}
PlayHurtAudio(TargetAgent:agent):void=
Print("Hurt Player")
CueAudioDevice.Play()
- have a script call the PlayHurtAudio fuction
- Make sure you add the AudioManager to the scene and link the audio player as an editable.
- Run Session and trigger the script to call the playHurtAudio function.
Expected Result
When the CueAudioDevice.Play() is called I expect to hear the audio
Observed Result
Currenlty no audio is triggered in Verse only with the button. I know my code is working because the log “Print(“Hurt Player”)” is showing on my screen.
Platform(s)
Testing with UEFN on Windows 11