Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Plays a sound.
Permission Level | Game Directors |
---|---|
Requires Cheats? | Yes |
Usage
Play sound
/playsound <sound: string> [player: target] [position: x y z] [volume: float] [pitch: float] [minimumVolume: float]
Play a sound
with optional player
, position
, volume
, pitch
, and minimum volume
.
Arguments
minimumVolume
: float Afloat
that specifies the volume. Between 0.0 and 1.0. Default:0.0
.pitch
: float Optional. Afloat
that specifies the pitch. Must bet between 0.0 and 256. Default:1.0
.player
: target Optional. A player namestring
ortarget selector
to identify the player.position: x y z
: position Optional.Vector
[x y z] of the position sounds originate from.sound
: string Required. Astring
that defines the sound. Should be defined insound.definitions.josn
.volume
: float Optional. Afloat
that specifies the volume. Between 0.0 and 1.0. Below 1.0 diminishes the sound. 0 is inaudible. Default:1.0
.