LSL(Linden Script Language)スクリプトTips集

lslでテレポートする(llMapDestination関数)

下記のスクリプトでは、オブジェクトをクリックした時にMapが表示され、
sugamoにある私のカフェへテレポートします。

default
{
  state_entry()
  {
    llSetText( "Teleport to Rookie's Cafe",<1, 0, 0>, 1 );
  }
  touch_start(integer total_number)
  {
  llMapDestination( "sugamo", <13,181,22>,
   <0,1,0> );
  }
}
llMapDestination関数
一番目のパラメータ : Sim名
二番目のパラメータ : 位置