LlGetAlpha

来自人工智能助力教育知识百科
跳转至: 导航搜索

Template:Needs Translation/


函数名
float llGetAlpha( integer face )
参数:integer face – 面的编号或者ALL_SIDES表示所有面
返回值:返回一个浮点数,它是face的alpha值。
注意事项
注意事项
  • 如果face表示一个不存在的face,则返回1.0
示例
//Tells the owner the alpha on all sides
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            llSay(0,"Face "+(string)i+" alpha is " + (string)llGetAlpha(i));
            ++i;
        }
    }
}
相关函数
llSetAlpha – Sets the prim's alpha

llGetColor – Gets the prim's color llSetColor – Sets the prim's color llSetLinkColor – Sets link's color llSetLinkAlpha – Sets link's alpha llGetNumberOfSides – Gets the number of faces on the prim

相关事件
Translucent Color