registerSoundPlay

open fun registerSoundPlay(method: Any): SoundPlayTrigger

Registers a new trigger that runs before a sound is played.

Passes through six arguments:

  • The sound event's position

  • The sound event's name

  • The sound event's volume

  • The sound event's pitch

  • The sound event's category's name

  • The sound event, which can be cancelled

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard