Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Summary
I was recently writing some verse to play vfx_spawner_device for a few seconds as part of an in game event occurring. I decided to use the opportunity to experiment with the branch version of structured concurrency. I wrote something like the simplified snippet below in the steps to reproduce, but unfortunately the vfx disable call never happens (nor does any code I put inside the branch after the sleep).
Steps to Reproduce
TriggerEvent() : void =
{
# Do stuff before VFX start
# Trigger VFX
if ( VFX_DurationSecs > 0.0 )
{
branch
{
VFX.Enable()
Sleep(VFX_DurationSecs)
VFX.Disable()
}
}
# Do other stuff in parallel with VFX
}
Expected Result
The vfx would start and play for the specified duration and then stop, and the “other stuff in parallel” would occur while the vfx plays.
Observed Result
The vfx starts, and the “other stuff in parallel” does run in parallel but the vfx disable call (or any other code I tried after the sleep) never executes.
Platform(s)
PC
1 post - 1 participant