Difference between revisions of "PRIM NAME/ja"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "<onlyinclude>{{#if: {{LSL Function/limits}} {{LSL Function/color|color}} {{LSL Function/alpha|alpha}} {{#vardefine:p_text_set_hover|floating text to display}} {{#vardefine:p_te…")
 
Line 1: Line 1:
<onlyinclude>{{#if:
<onlyinclude>{{#if:


{{LSL Function/limits}}
{{#vardefine:name_const|{{LSL Const|PRIM_NAME|integer||c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's name}}}}
{{LSL Function/color|color}}
{{LSL Function/alpha|alpha}}
 
{{#vardefine:p_text_set_hover|floating text to display}}
{{#vardefine:p_text_get_hover|floating text displayed}}
{{#vardefine:p_text_hover|{{#switch:{{{1|}}}|get={{#var:p_text_get_hover}}|set={{#var:p_text_set_hover}}|floating text}}}}
 
{{#vardefine:p_text_set_desc|[[:Category:LSL Floating Text|floating text]] to display}}
{{#vardefine:p_text_get_desc|[[:Category:LSL Floating Text|floating text]] displayed}}
{{#vardefine:p_text_desc|{{#switch:{{{1|}}}|get={{#var:p_text_get_desc}}|set={{#var:p_text_set_desc}}|[[:Category:LSL Floating Text|floating text]]}}}}
 
{{#vardefine:text_const|{{LSL Const|PRIM_TEXT|integer|26|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the object's floating text}}}}
 
{{#vardefine:caveats|{{#var:caveats}}
* Do not rely on [[:Category:LSL Floating Text|Floating Text]] as a storage medium; it is neither secure nor finalized.
** Floating text has been altered in past server updates, breaking existing content; future changes may occur.
** Even "invisible"{{Footnote|1=Floating text with an '''{{LSL Param|alpha}}''' set to 0.0 is rendered "invisible"|2=Floating text with an alpha set to 0.0 is rendered {{String|invisible}}}} floating text is transmitted to the client.
*** It can be viewed by anyone with a client that is capable of rendering text that is supposed to be invisible.
*** The network packets that contain the text can be sniffed and the text read.}}


}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:


}}{{LSL Constant
}}{{LSL Constant
|name=PRIM_TEXT
|name=PRIM_NAME
|type=integer
|type=integer
|value=26
|value=27
|desc=Used to get or set the object's [[:Category:LSL Floating Text|floating text]].
|desc=Used to get or set the prim's name.
|pa={{LSL Constant/List|i_front=[[llSetPrimitiveParams]]([ {{#var:text_const}},&#32;|i_end=&nbsp;]);|
|pa={{LSL Constant/List|i_front=[[llSetPrimitiveParams]]([&#32;{{#var:name_const}},&#32;|i_end=&nbsp;]);
|text=Syntax for: [[llSetPrimitiveParams]], [[llSetLinkPrimitiveParams]] & [[llSetLinkPrimitiveParamsFast]]
|text={{LSL Constant/PrimParamText|set}}
|i1_type=string|i1_name=text_set|i1_disp=text
|i1_type=string|i1_name=name
|i2_type=vector|i2_name=color
|i3_type=float|i3_name=alpha
|toc=llSetPrimitiveParams
|toc=llSetPrimitiveParams
}}
}}
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:text_const}}|i_end=&nbsp;]);|
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:name_const}}|i_end=&nbsp;]);|
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|text=Syntax for: [[llGetPrimitiveParams]], [[llGetLinkPrimitiveParams]]
|text={{LSL Constant/PrimParamText|get}}
|r1_type=string|r1_name=text_get|r1_disp=text
|r1_type=string|r1_name=name
|r2_type=vector|r2_name=color
|r3_type=float|r3_name=alpha
|toc=llGetPrimitiveParams
|toc=llGetPrimitiveParams
}}
}}
Line 52: Line 29:
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetText]]|}}
{{LSL DefineRow||[[llGetObjectName]]|}}
{{LSL DefineRow||[[llSetObjectName]]|}}
|events
|events
|location
|location
|cat1=Prim
|cat1=Prim
|cat2=Floating Text
|cat2=PrimitiveParams
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 19:17, 17 December 2010

Description

Constant: integer PRIM_NAME = 27;

The integer constant PRIM_NAME has the value 27

Used to get or set the prim's name.

llSetPrimitiveParams

llSetPrimitiveParams([ PRIM_NAME, string name ]);
• string name

The same syntax applies to llSetLinkPrimitiveParams and llSetLinkPrimitiveParamsFast but with an additional prefixed link parameter in the function call.

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_NAME ]);

Returns the list [ string name ]

• string name

The same syntax applies to llGetLinkPrimitiveParams, but with an additional prefixed link parameter in the function call.

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_NAME = 27;