“LlAdjustSoundVolume”的版本间的差异

来自人工智能助力教育知识百科
跳转至: 导航搜索
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名=Function: llAdjustSoundVolume( float volume ); |参数= 参数:float…”)
 
Qmf讨论 | 贡献
第4行: 第4行:
 
{{函数详情
 
{{函数详情
 
|函数名=Function: llAdjustSoundVolume( float volume );
 
|函数名=Function: llAdjustSoundVolume( float volume );
|参数= 参数:float volume – between 0.0 (silent) and 1.0 (loud) (0.0 <= volume <= 1.0)  
+
|参数= 参数:• float
|返回= 返回:Adjusts volume of attached sound.
+
volume  
 +
–  
 +
between 0.0 (silent) and 1.0 (loud) (0.0 <= volume <= 1.0)
 +
|返回= 返回:Adjusts volume of attached sound.
  
  
|注意事项=This function causes the script to sleep for 0.1 seconds.  
+
|注意事项=This function causes the script to sleep for 0.1 seconds.
  
  
 
|示例=
 
|示例=
示例
+
</pre>
<pre>
 
 
default
 
default
 
{
 
{
第29行: 第31行:
 
}
 
}
 
</pre>
 
</pre>
 
<syntaxhighlight lang="C++" line='line'>
 
#include<iostream>
 
int main(void)
 
{
 
    std::cout<<"hello wiki"<<std::endl;
 
    return 0;
 
}
 
</syntaxhighlight>
 
 
<syntaxhighlight lang="Python" line='line'>
 
def quickSort(arr):
 
less = []
 
pivotList = []
 
more = []
 
if len(arr) <= 1:
 
return arr
 
else:
 
pass
 
</syntaxhighlight>
 

2020年3月2日 (一) 12:38的版本

Template:Needs Translation/


{{函数详情 |函数名=Function: llAdjustSoundVolume( float volume ); |参数= 参数:• float volume – between 0.0 (silent) and 1.0 (loud) (0.0 <= volume <= 1.0) |返回= 返回:Adjusts volume of attached sound.


|注意事项=This function causes the script to sleep for 0.1 seconds.


|示例=

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");
   }

}