Calling playSound inside randomTickUpdateEvent doesn't play sound

Published by ahznb on
Status
Resolved
Issue description

Hi,

I'm trying to call playSound inside my custom block's randomTickUpdateEvent, like this:

screen cap of my proc

But the sound doesn't play at all. The line after it that sends chat will display the text though. Sounds play when called from other procs, such as in onBlockAdded, so is it because it was called inside a tick event?

Uploaded workspace. It contains just one simple mod element.

Issue comments