LlSetTexture/ja - Second Life Wiki

LlSetTexture/ja

From Second Life Wiki

Jump to: navigation, search

関数: llSetTexture( string texture, integer face );

プリムのfacetextureを設定します。

• string texture texture名、あるいはUUID
• integer face の番号あるいはALL_SIDES


もしfaceの値がALL_SIDESなら、関数は全側面に作用します。

警告

  • この関数は0.2秒間、スクリプトを停止します。
  • 関数はfaceの値が示す面が存在しない場合、 エラーを返しません
  • textureがプリム内から無くなっている場合、UUIDがない、あるいはそのtextureではない場合、エラーがDEBUG_CHANNELで報告されます。

 
default
{
    state_entry()
    {
        string texture = llGetInventoryName(INVENTORY_TEXTURE, 0);
        llSetTexture(texture, ALL_SIDES);
    }
}

関連項目