LlAdjustSoundVolume/zh-Hant

From Second Life Wiki
< LlAdjustSoundVolume
Revision as of 10:39, 11 June 2012 by Strife Onizuka (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

概要

函式: llAdjustSoundVolume( float volume );
207 函式ID
0.1 延遲
10.0 能量

將身上所有音效的音量調整至volume

• float volume between 0.0 (silent) and 1.0 (loud) (0.0 <= volume <= 1.0)

注意事項

  • 這函式會導致script延遲 0.1 秒。

範例

<lsl> default {

   state_entry()
   {
       llListen(42, "", llGetOwner(), "");
   }
   listen(integer chan, string name, key id, string msg)
   {
       float value = (float)msg;
       llAdjustSoundVolume(value);
       llOwnerSay("Volume set to: " + (string)value + " of 1.0");
   }

}

</lsl>