Difference between revisions of "LlMinEventDelay/ja"
Jump to navigation
Jump to search
そしてこれ以上イベントは発生しません。これは llMinEventDelay によって情報が紛失する例ですので、気をつけてください。
Mako Nozaki (talk | contribs) m (カテゴリ変更) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 10: | Line 10: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples= | ||
<source lang="lsl2">default | |||
{ | |||
state_entry() | |||
{ | |||
llMinEventDelay(5.0); | |||
} | |||
touch(integer detected) | |||
{ | |||
llSay(0, "Touched.");// イベント遅延時間が設定されていないと、マウスボタンを押し続けていると、 | |||
// 一瞬にしてスクリーンが "Touched" という文字でいっぱいになります。 | |||
} | |||
}</source> | |||
オブジェクトの一つにこのスクリプトを入れます (ウケ狙いでオブジェクトを "Sandy Powell" と呼びます) - | |||
<source lang="lsl2">default | |||
{ | |||
touch(integer detected) | |||
{ | |||
llSay(0, "Can you hear me mother?");//Northern English accent. Catch phase of Sandy Powell (comedian). | |||
} | |||
}</source> | |||
そしてこれを "Mother" というオブジェクトの中へ - | |||
<source lang="lsl2">default | |||
{ | |||
state_entry() | |||
{ | |||
llMinEventDelay(5.0); | |||
llListen(0, "Sandy Powell", "", ""); | |||
} | |||
listen(integer chan, string name, key id, string msg) | |||
{ | |||
llSay(0, "Eh?"); | |||
} | |||
}</source> | |||
チャットの結果はこの通り - | |||
<source lang="lsl2"> | |||
[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? | |||
</source> | |||
そしてこれ以上イベントは発生しません。これは {{LSLG/ja|llMinEventDelay}} によって情報が紛失する例ですので、気をつけてください。 | |||
|helpers | |helpers | ||
|also_functions | |also_functions | ||
Line 20: | Line 107: | ||
|permission | |permission | ||
|negative_index | |negative_index | ||
|cat1=Script | |cat1=Script | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 |
Latest revision as of 09:11, 21 February 2016
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: llMinEventDelay( 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?
関連項目
記事
• | LSL Delay | – | デフォルトの遅延時間はここで参照してください |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。