llAdjustSoundVolume.lsl 293 B

12345678910111213
  1. default
  2. {
  3. state_entry()
  4. {
  5. llListen(42, "", llGetOwner(), "");
  6. }
  7. listen(integer chan, string name, key id, string msg)
  8. {
  9. float value = (float)msg;
  10. llAdjustSoundVolume(value);
  11. llOwnerSay("Volume set to: " + (string)value + " of 1.0");
  12. }
  13. }