Plays a sound effect. If an entity or place is specified, the sound effect can only be heard within the range of that entity or place.
Argument | Sound Effect Name |
---|---|
Type | Sound Effect |
Default | REQUIRED |
Description | Name of the sound effect to play |
Argument | Name of Entity or Place |
Type | Entity or Place |
Default | Null |
Description | Name of the entity or place to confine the sound effect |
Argument | Loop |
Type | Boolean |
Default | false |
Description | Whether the sound effect loops until stopped |
PlaySound(Potion)
PlaySound(Potion, Camp.Cauldron)
PlaySound(Laugh, Tom)
PlaySound(River, Bridge, true)