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.

secondlife/scripted_agents/corrade/api/commands/playsound.txt ยท Last modified: 2022/11/24 07:45 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.