LlMinEventDelay/ja
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: llMinEventDelay( float delay );サンプル
<lsl>default {
state_entry() { llMinEventDelay(5.0); } touch(integer detected) { llSay(0, "Touched.");// イベント遅延時間が設定されていないと、マウスボタンを押し続けていると、 // 一瞬にしてスクリーンが "Touched" という文字でいっぱいになります。 }
}</lsl>
オブジェクトの一つにこのスクリプトを入れます (ウケ狙いでオブジェクトを "Sandy Powell" と呼びます) -
<lsl>default {
touch(integer detected) { llSay(0, "Can you hear me mother?");//Northern English accent. Catch phase of Sandy Powell (comedian). }
}</lsl>
そしてこれを "Mother" というオブジェクトの中へ -
<lsl>default {
state_entry() { llMinEventDelay(5.0); llListen(0, "Sandy Powell", "", ""); } listen(integer chan, string name, key id, string msg) { llSay(0, "Eh?"); }
}</lsl>
チャットの結果はこの通り -
<lsl> [12:51] Sandy Powell: Can you hear me mother? [12:51] Mother: Eh? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? </lsl>
そしてこれ以上イベントは発生しません。これは llMinEventDelay によって情報が紛失する例ですので、気をつけてください。関連項目
記事
• | LSL Delay | – | デフォルトの遅延時間はここで参照してください |