LlSetSoundQueueing/ja - Second Life Wiki

LlSetSoundQueueing/ja

From Second Life Wiki

メインページ > LlSetSoundQueueing > LlSetSoundQueueing/ja
Jump to: navigation, search

関数: llSetSoundQueueing( integer queue );

現在の音が終了するまで待ってから、添付された音を呼び出すかどうかを決定します。 queueTRUE ならば待機が有効に、FALSE ならば無効になります。(Falseが標準です)

• integer queue ブーリアン, 音声の待機: TRUE ならば有効化, FALSE ならば無効化 (デフォルト)

警告

  • 同時に待機できる音声は 2 個までのようです。
  • 音声の待機状態はプリムの属性であり、特定のスクリプトに依存しません。待機状態はプリム内のいかなるスクリプトによっても有効化・無効化可能であり、その状態はスクリプトがリセット・再rez・削除されても保持されます。

 
default
{
    state_entry()
    {
        llPreloadSound("SoundName1");//This loads the sounds into all in range viewers and cuts delay between sounds.
        llPreloadSound("SoundName2");//All sound parameters can be the name of a sound in the prim's inventory or a UUID of a sound");
    }
    touch_start(integer detected)
    {
        llSetSoundQueueing(TRUE);//Set to TRUE for queueing and SoundName2 plays after the SoundName1 has ended.
        //Set to FALSE only the second will be played since the prim has only one sound emmiter and the second was called last.
        //Can be set anywhere withing the script (if within an event it will activate when the event is triggered.
        llPlaySound("SoundName1", 1.0);
        llPlaySound("SoundName2", 1.0);
    }
}
 

関連項目

関数

•  llLoopSound
•  llLoopSoundSlave 添付された音を繰り返し再生します。
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。