LlGetAlpha
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| float llGetAlpha( integer face ) |
| 参数:integer face – 面的编号或者ALL_SIDES表示所有面 |
| 返回值:返回一个浮点数,它是face的alpha值。 |
| 注意事项 |
|---|
注意事项
|
| 示例 |
|---|
//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 |