“LlAdjustSoundVolume”的版本间的差异
| 第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) | 
| − | volume   | ||
| − | –   | ||
| − | between 0.0 (silent) and 1.0 (loud) (0.0 <= volume <= 1.0) | ||
| |返回值= 返回值:Adjusts volume of attached sound. | |返回值= 返回值:Adjusts volume of attached sound. | ||
2020年4月13日 (一) 08:37的版本
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials | 
| 函数名 | 
|---|
| 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");
    }
}
 | 
| 相关函数 | 
|---|
| 无 | 
| 相关事件 | 
|---|
| 无 | 
