Difference between revisions of "LlGetRegionName/ja"
Jump to navigation
Jump to search
Mako Nozaki (talk | contribs) m (Undo revision 851042 by Mako Nozaki (Talk)) |
|||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
|func_footnote | |func_footnote | ||
|func_desc | |func_desc | ||
|return_text= | |return_text=現在の [[Viewer coordinate frames/ja#Region|リージョン]] 名 | ||
|spec | |spec | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples=< | |examples=<source lang="lsl2"> | ||
// | // 標準クライアントのマップの「SLURL をクリップボードにコピー」でコピーされるようなものを発言します | ||
string wwGetSLUrl() | |||
{ | |||
string globe = "http://slurl.com/secondlife"; | |||
string region = llGetRegionName(); | |||
vector pos = llGetPos(); | |||
string posx = (string)llRound(pos.x); | |||
string posy = (string)llRound(pos.y); | |||
string posz = (string)llRound(pos.z); | |||
return (globe + "/" + region +"/" + posx + "/" + posy + "/" + posz); | |||
} | |||
default | default | ||
{ | { | ||
state_entry() | state_entry() | ||
{ | { | ||
llOwnerSay( wwGetSLUrl() ); | |||
} | } | ||
} | } | ||
</ | </source> | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow|| | |also_functions= | ||
{{LSL DefineRow||{{LSLG/ja|llRequestSimulatorData}}|}} | |||
{{LSL DefineRow||{{LSLG/ja|llGetSimulatorHostname}}|}} | |||
|also_tests | |also_tests | ||
|also_events | |also_events |
Latest revision as of 15:01, 25 February 2016
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
サンプル
// 標準クライアントのマップの「SLURL をクリップボードにコピー」でコピーされるようなものを発言します
string wwGetSLUrl()
{
string globe = "http://slurl.com/secondlife";
string region = llGetRegionName();
vector pos = llGetPos();
string posx = (string)llRound(pos.x);
string posy = (string)llRound(pos.y);
string posz = (string)llRound(pos.z);
return (globe + "/" + region +"/" + posx + "/" + posy + "/" + posz);
}
default
{
state_entry()
{
llOwnerSay( wwGetSLUrl() );
}
}
関連項目
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。