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

Syntax

void llCollisionSound( string impact_sound, float impact_volume );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

string impact_sound
a sound in the inventory of the prim this script is in, a UUID of a sound or an empty string
float impact_volume
between 0.0 (silent) and 1.0 (loud) (0.0 <= impact_volume <= 1.0)

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.

Caveats

Examples

//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);
    }
}

See also

Events

Functions

Deep notes

History

Footnotes

  1. Early release notes were not very accurate or thorough, they sometimes included information about features added in previous releases or failed to include information about features added in that release.