# llCollisionSound

*LSL function*

```lsl
void llCollisionSound(string impact_sound, float impact_volume);
```

- `string impact_sound`: UUID of a sound, the name of a sound in the prim's inventory, or an empty string to suppress sounds.
- `float impact_volume`: Volume level to set, between 0.0 (silent) and 1.0 (loud).

- Energy: 10

Suppress default collision sounds, replace default impact sounds with **impact_sound** at the volume **impact_volume**

If **impact_sound** is an empty string then the collision sound is suppressed.

If **impact_volume** is set to zero the collision particles are suppressed.

```lsl title="How to use" frame="terminal"
llCollisionSound("", 0.0);
```

## Caveats

- If this function is used to suppress collision sounds, NO sound will be generated even if the suppressed object collides with an unsuppressed object (there will be no sound from the unsuppressed object either).

## Examples

<details open>
<summary>Example 1</summary>

```lsl
//Play Sound When Collision Occurs With Other Object Or An AGENT
//Creator: TonyH Wrangler

string sound = "ed124764-705d-d497-167a-182cd9fa2e6c"; //uuid or name of item in inventory

default
{
    state_entry()
    {
        llCollisionSound(sound, 1.0);
    }
}
```

</details>

## History

Added in [SL 0.2.0](http://secondlife.wikia.com/wiki/Version_0.2.0)

## See also

### Functions

- [llCollisionFilter](/functions/llCollisionFilter/)

### Events

- [collision_start](/events/collision_start/)
- [collision](/events/collision/)
- [collision_end](/events/collision_end/)

---

*Source: [LlCollisionSound](https://wiki.secondlife.com/wiki/LlCollisionSound) on the Second Life Wiki. Content from the Second Life Wiki articles LlCollisionSound (revision 1194075, 2015-01-22) and Template:LSL Function/inventory (revision 1191151, 2014-06-07), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llCollisionSound/
