6 October 2016
<data Commands>
Type: Corrade progressive command
Command[wiki]: playsound
Description[wiki]: The playsound
command is able to play a sound asset, either from inventory or referenced by an UUID at the current or specified location.
Permissions[wiki]: interact
Parameters[wiki]: group
, password
, item
Last Changes[wiki]: Release 9.133 - The command now can take a path instead of a name.
</data>
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 ![]() | The volume at which the sound is played with ![]() ![]() |
position | A vector as a region position. | Plays the sound at the given position. |