//************************************************** //* //* Title: Fakefur Script Sample03 //* Make : 2006/09/07 //* Note : Put -> PlaySound (20 seconds distance) //* Touch -> StopSound & StopTimer //* //************************************************** float Volume = 1; //Sound Volume = 1 string SoundName = "Whistle call"; //Play SoundName //**************** //* Main Program * //**************** default{ //****************** //* Initialization * //****************** state_entry() { //Start Timer llSetTimerEvent(20); } //********* //* Touch * //********* touch_start(integer total_number) { llSetTimerEvent(0); //Stop TimerEvent llStopSound(); //Stop Sound } //************** //* TimerEvent * //************** timer() { llPlaySound(SoundName,Volume); } }