LlGetRegionTimeOfDay/ja
< LlGetRegionTimeOfDay
Jump to navigation
Jump to search
Revision as of 14:51, 22 November 2023 by Misaki Vanilla (talk | contribs) (Created page with "{{LSL_Function/ja |func=llGetRegionTimeOfDay |func_id=80 |func_sleep=0.0 |func_energy=10.0 |return_type=float |func_footnote=デフォルトでは(カスタム環境設定...")
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: float llGetRegionTimeOfDay( );サンプル
//Time will be less than 4 hours unless the sun is locked.
default
{
touch_start(integer total_number)
{
float tod = llGetRegionTimeOfDay( );
llOwnerSay("Time since last region restart or SL midnight (based on SL 4 hour day):");
integer hours = ((integer)tod / 3600) ;
integer minutes = ((integer)tod / 60) - (hours * 60);
llOwnerSay((string) tod + " seconds which is "+(string) hours+"h "+(string) minutes+"m");
}
}
関連項目
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。