Jump to content

Photo

Linking sound to a switch


  • Please log in to reply
16 replies to this topic

#11
stevie70

stevie70

    Fan

  • Banned
  • PipPipPip
  • 484 posts

ya ive plugged in different sound and they all do the same thing.

sorry, i can't see anything wrong with the script, maybe somebody else can.
and you're sure you picked a _non_looping_ sound...? QSTKlaxonA DEFINITELY is a looper, so make a non-looping copy of it and try again.
and make sure the switch doesn't have any activation parents or anything.
else, i'd have no idea why this shouldn't work

#12
Officer360

Officer360

    Newbie

  • Validating
  • Pip
  • 15 posts
ok i did all of this but now my script wont save :wacko: i cant even copy and paste the script. it wont save and there are no problems. i copied it to the letter. im just going to scrap it and try someting else :wallbash:
thank you for your help though.

Edited by Officer360, 21 July 2011 - 06:21 PM.


#13
Officer360

Officer360

    Newbie

  • Validating
  • Pip
  • 15 posts
ok i finally got it to save but when i tested it with a non-looping sound it only played for two seconds and then stopped.

#14
stevie70

stevie70

    Fan

  • Banned
  • PipPipPip
  • 484 posts

ok i finally got it to save but when i tested it with a non-looping sound it only played for two seconds and then stopped.

well that's exactly what you wanted i thought, the sound to stop...!?

#15
Officer360

Officer360

    Newbie

  • Validating
  • Pip
  • 15 posts
im trying to get it to keep looping until i press the switch again for it to stop. sorry for not being clear on that. i want it to work like a fire alarm where you pull the switch and the alarm goes off but when you flip the switch again the sound stops.

#16
tunaisafish

tunaisafish

    Old hand

  • Supporter
  • PipPipPip
  • 641 posts
Place the sound into the cell, and edit the reference so that it is 'initially disabled', 'persistent', and give it a name like 'KlaxonSndREF'.

(I think) you should then be able to use the KlaxonSndREF.enable and KlaxonSndREF.disable commands to turn it on/off in your switch script.

#17
Officer360

Officer360

    Newbie

  • Validating
  • Pip
  • 15 posts
that did it! :dance: :biggrin: Kudos to both of you for you help!




Page loaded in: 1.205 seconds