“LlSetText”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 =Function: llSetText( string text, vector color, float alpha ); |参…”) |
(没有差异)
|
2020年8月12日 (三) 13:37的最新版本
首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
函数名 |
---|
Function: llSetText( string text, vector color, float alpha ); |
参数:
•字符串文本–要显示的浮动文本 •矢量颜色–RGB中的颜色<R,G,B>(<0.0,0.0,0.0>=黑色,<1.0,1.0,1.0>=白色) •浮动α–从0.0(透明)到1.0(固体)(0.0<=α<=1.0) |
返回值:“透明”和指定颜色的“半透明”显示在上面。 |
注意事项 |
---|
无(如果遇到表格情况在文段末尾加一句表格参见附录) |
示例 |
---|
示例1
default { state_entry() { vector COLOR_GREEN = <0.0, 1.0, 0.0>; float OPAQUE = 1.0; // prim's name (not necessarily object's) llSetText(llGetObjectName(), COLOR_GREEN, OPAQUE ); // delete the script as we only needed it to change the floating text property llRemoveInventory(llGetScriptName()); } } |
相关函数 |
---|
相关事件 |
---|
附录:(表格)
header 1 | header 2 | header 3 |
---|---|---|
row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |
row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |