LlResetTime/ja
< LlResetTime
Jump to navigation
Jump to search
Revision as of 19:01, 21 May 2008 by Asuka Neely (talk | contribs) (New page: {{LSL_Function/ja |func_id=83|func_sleep=0.0|func_energy=10.0 |func=llResetTime |func_desc=スクリプト時間を0に初期化します。 |return_text |spec |caveats= *スクリプト...)
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
警告
- スクリプト時間が初期化されるタイミング
- スクリプトをリセットする。(ユーザによる操作、あるいはllResetScriptあるいはllResetOtherScript)
- シミュレータのリセット。(管理者操作、あるいはクラッシュ)
- llResetTimeあるいはllGetAndResetTimeのいずれかの呼び出し。
サンプル
<lsl> default {
state_entry() { llResetTime(); } touch_start(integer num_touch) { float time = llGetTime(); //Instead getting, and then resetting the time, we could use llGetAndReset() to accomplish the same thing. llResetTime(); llSay(0,(string)time + " seconds have elapsed since the last touch." ); }
}
</lsl>関連項目
関数
• | llGetTime | |||
• | llGetAndResetTime |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。