/////////////////////////////////////////////////////////////////////////// // Copyright (C) Wizardry and Steamworks 2011 - License: GNU GPLv3 // // Please see: http://www.gnu.org/licenses/gpl.html for legal details, // // rights of fair usage, the disclaimer and warranty conditions. // /////////////////////////////////////////////////////////////////////////// // Change this to either the NAME of a sound in the same primitive // as this script, OR the key of the sound to be played if it is not // in the same primitive as this script. string SOUND = "9fb1f482-5edf-1544-98c4-b8f86ea9ea26"; integer o = -1; default { touch_start(integer total_number) { if(o = ~o) { llStopSound(); return; } llLoopSound(SOUND, 1); } }