LlSetSoundQueueing/ja
Jump to navigation
Jump to search
| LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: llSetSoundQueueing( integer queue );警告
- 同時に待機できる音声は 2 個までのようです。
- 音声の待機状態はプリムの属性であり、特定のスクリプトに依存しません。待機状態はプリム内のいかなるスクリプトによっても有効化・無効化可能であり、その状態はスクリプトがリセット・再rez・削除されても保持されます。
サンプル
<lsl> 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);
}
}
</lsl>関連項目
関数
| • | llLoopSound | |||
| • | llLoopSoundSlave | – | 添付された音を繰り返し再生します。 |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。