Difference between revisions of "LlMinEventDelay/ja"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 11: Line 11:
|constants
|constants
|examples=
|examples=
<lsl>default
<source lang="lsl2">default
{
{
     state_entry()
     state_entry()
Line 22: Line 22:
                             // 一瞬にしてスクリーンが "Touched" という文字でいっぱいになります。
                             // 一瞬にしてスクリーンが "Touched" という文字でいっぱいになります。
     }
     }
}</lsl>
}</source>


オブジェクトの一つにこのスクリプトを入れます (ウケ狙いでオブジェクトを "Sandy Powell" と呼びます) -
オブジェクトの一つにこのスクリプトを入れます (ウケ狙いでオブジェクトを "Sandy Powell" と呼びます) -


<lsl>default
<source lang="lsl2">default
{
{
     touch(integer detected)
     touch(integer detected)
Line 32: Line 32:
         llSay(0, "Can you hear me mother?");//Northern English accent. Catch phase of Sandy Powell (comedian).
         llSay(0, "Can you hear me mother?");//Northern English accent. Catch phase of Sandy Powell (comedian).
     }
     }
}</lsl>
}</source>


そしてこれを "Mother" というオブジェクトの中へ -
そしてこれを "Mother" というオブジェクトの中へ -


<lsl>default
<source lang="lsl2">default
{
{
     state_entry()
     state_entry()
Line 47: Line 47:
         llSay(0, "Eh?");
         llSay(0, "Eh?");
     }
     }
}</lsl>
}</source>


チャットの結果はこの通り -  
チャットの結果はこの通り -  


<lsl>
<source lang="lsl2">
[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?
Line 96: Line 96:
[12:52]  Mother: Eh?
[12:52]  Mother: Eh?
[12:52]  Mother: Eh?
[12:52]  Mother: Eh?
</lsl>
</source>
そしてこれ以上イベントは発生しません。これは {{LSLG/ja|llMinEventDelay}} によって情報が紛失する例ですので、気をつけてください。
そしてこれ以上イベントは発生しません。これは {{LSLG/ja|llMinEventDelay}} によって情報が紛失する例ですので、気をつけてください。
|helpers
|helpers

Latest revision as of 10:11, 21 February 2016

要約

関数: llMinEventDelay( float delay );

イベント処理間の最小遅延時間を設定します。

• float delay 秒で指定

サンプル

default
{
    state_entry()
    {
        llMinEventDelay(5.0);
    }
    touch(integer detected)
    {
        llSay(0, "Touched.");// イベント遅延時間が設定されていないと、マウスボタンを押し続けていると、
                             // 一瞬にしてスクリーンが "Touched" という文字でいっぱいになります。
    }
}

オブジェクトの一つにこのスクリプトを入れます (ウケ狙いでオブジェクトを "Sandy Powell" と呼びます) -

default
{
    touch(integer detected)
    {
        llSay(0, "Can you hear me mother?");//Northern English accent. Catch phase of Sandy Powell (comedian).
    }
}

そしてこれを "Mother" というオブジェクトの中へ -

default
{
    state_entry()
    {
        llMinEventDelay(5.0);
        llListen(0, "Sandy Powell", "", "");
    }
    listen(integer chan, string name, key id, string msg)
    {
        llSay(0, "Eh?");
    }
}

チャットの結果はこの通り -

[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?
そしてこれ以上イベントは発生しません。これは llMinEventDelay によって情報が紛失する例ですので、気をつけてください。

関連項目

記事

•  LSL Delay デフォルトの遅延時間はここで参照してください

特記事項

Search JIRA for related Issues

Signature

function void llMinEventDelay( float delay );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。