Difference between revisions of "LlGetSimulatorHostname/ja"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{LSL_Function/ja |func_id=283|func_sleep=10.0|func_energy=10.0 |func=llGetSimulatorHostname |return_type=string |func_footnote |func_desc |return_text=(ビューアヘルプダイアロ...)
 
m (カテゴリ変更)
Line 44: Line 44:
|also_articles={{LSL DefineRow||[[Simulator IP Addresses]]|}}
|also_articles={{LSL DefineRow||[[Simulator IP Addresses]]|}}
|notes
|notes
|cat1=Region
|cat1=Region/ja
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 07:07, 10 April 2010

要約

関数: string llGetSimulatorHostname( );

(ビューアヘルプダイアログにある文字と同じ、)スクリプトが動いているマシンのホスト名を string で返します。

警告

  • この関数は 10.0 秒間、スクリプトを停止します。
All Issues ~ Search JIRA for related Bugs

サンプル

<lsl> // The beginnings of a region-info script. string region; string sim;

default {

   state_entry()
   {
       llSetTimerEvent(1.0);
   }
   timer()
   {
       string here = llGetRegionName();
       if(region != here)
       {
           sim = llGetSimulatorHostname();
           region = here;
       }
       llSetText(
               "   REGION NAME : " + region + 
             "\n  SIM HOSTNAME : " + sim + 
             "\nTIME DIALATION : " + (string)llGetRegionTimeDilation() +
             "\n    REGION FPS : " + (string)llGetRegionFPS(),
           <0,1,0>, 1.0);
   }

}

</lsl>

関連項目

関数

•  llGetRegionFPS リージョンFPSを取得します
•  llGetRegionTimeDilation リージョンの時間遅延を取得します

記事

•  Simulator IP Addresses

特記事項

Search JIRA for related Issues

Signature

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