Play a Sound

6 October 2016

  • Release 9.133 - The command now can take a path instead of a name.
playsound (Commands)
TypeCorrade progressive command
Commandplaysound
DescriptionThe playsound command is able to play a sound asset, either from inventory or referenced by an UUID at the current or specified location.
Permissionsinteract
Parametersgroup, password, item
Last ChangesRelease 9.133 - The command now can take a path instead of a name.

The playsound command is able to play a sound asset, either from inventory or referenced by an UUID at the current or specified location.

Command Required Parameters Required Corrade Permissions Example
playsound group, password, item interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Play the sound asset
            // named "Boo!" from
            // the bot's inventory
            "command", "playsound",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", wasURLEscape("/My Inventory/Notecards/Boo!")
        ]
    )
);
Optional Parameters Possible Values Description
gain Any float in the interval $[0, 1]$. The volume at which the sound is played with $0$ being totally silent and $1$ representing full volume.
position A vector as a region position. Plays the sound at the given position.