Jump to content

Bl1ndMag

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you very much. Madness indeed! It worked perfectly with those corrections and I shall remember to never leave my curlies again.
  2. Newbie at scripting and I am already running into trouble! My goal is to have my object play a sound at delayed intervals after being touched and stop the sounds when touched again. integer on = FALSE; string soundname = "soundfilename"; default { state_entry() { on = FALSE; soundname = llGetInventoryName(INVENTORY_SOUND, 0); } touch_start(integer total_number) { if(llDetectedKey(0) != llGetOwner()) return; if(soundname != "") { if(on) llStopSound(); else llSetTimerEvent(15); llLoopSound(soundname, 1); on = !on; } } } When it is touched the sound loops continuously so something in my script is off but being a novice I am not sure where it errs. Any help would be appreciated.
×
×
  • Create New...