register Sound Play
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:
SoundPlayTrigger.setCriteria Sets the sound name criteria
Trigger.setPriority Sets the priority
Return
The trigger for additional modification
Parameters
method
The method to call when the event is fired