Module for playing ambient sounds through tokens.
- Assign sounds to Actors and play them via the Token HUD
- When played a temporary 'AmbientSound' is spawned that follows the Token
- Both GMs and players can play these sounds but players will require an active GM to be present
- Player Permissions
- Players can create and edit sounds on their tokens if editing is toggled on by the GM by Right-clicking the Token HUD button
API
SoundOfToken.play(token, description)
- Plays a sound on the token matching the passed in description
tokencan be a placeable, TokenDocument, Token ID string, or an Actor
SoundOfToken.stop(token, description)
- Stops playback of a sound matching the passed in description
tokencan be a placeable, TokenDocument, Token ID string, or an Actor