Difference between revisions of "User:Strife Onizuka/Sandbox/Switch/Template:Test"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL Header}} __NOTOC__ <noinclude>
{{{!}} {{Prettytable}} {{#switch:{{NAMESPACE}}|Template=|User=|{{LSLC|Light}}}}
See [[{{FULLPAGENAME}}/docs]] for additional documentation.
{{#if:
<pre>
{{#vardefine:p_type_desc|PRIM_SCULPT_TYPE_* flag}}
{{LSL_Function
{{#vardefine:p_hole_shape_desc|PRIM_HOLE_* flag}}
|func
{{#vardefine:p_cut_desc|x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored)}}
|func_id
{{#vardefine:p_hollow_desc|ranges from 0.0 (solid) to 0.95 (maximum hollowed)}}
|func_sleep
{{#vardefine:p_twist_box_desc|ranges from -0.5 (-180 degree in the edit window) to 0.5 (+180 degree in the edit window) for both x and y (z is ignored)}}
|func_energy
{{#vardefine:p_twist_torus_desc|ranges from -1.0 (-360 degree in the edit window) to 1.0 (+360 degree in the edit window) for both x and y (z is ignored)}}
|func_desc
{{#vardefine:p_hole_size_desc|x ranges from 0.05 to 1.0; y ranges from 0.05 (large hole) to 0.50 (no hole)}}
|func_footnote
{{#vardefine:p_top_size_desc|ranges from 0.0 to 1.0 for both x and y (z is ignored)}}
|return_type
{{#vardefine:p_z_taper_desc|ranges from 0.0 to 2.0 for both x and y (z is ignored)}}
|return_text
{{#vardefine:p_top_shear_desc|ranges from -0.5 to 0.5 for both x and y (z is ignored)}}
|p1_type|p1_name|p1_desc|p1_hover
{{#vardefine:p_taper_desc|ranges from -1.0 to 1.0 for both x and y (z is ignored)}}
|p2_type|p2_name|p2_desc|p2_hover
{{#vardefine:p_revolutions_desc|ranges from 1.0 to 4.00}}
|p3_type|p3_name|p3_desc|p3_hover
{{#vardefine:p_radius_offset_desc|depends on holesize y and revolutions}}
|p4_type|p4_name|p4_desc|p4_hover
{{#vardefine:p_skew_desc|ranges from -1.0 to 1.0}}
|p5_type|p5_name|p5_desc|p5_hover
{{#vardefine:p_id_desc|}}
|p6_type|p6_name|p6_desc|p6_hover
{{#vardefine:p_repeats_desc|x and y range from 0.0 to 100, in 0.01 increments (z is ignored)}}
|p7_type|p7_name|p7_desc|p7_hover
{{#vardefine:p_offsets_desc|x and y range from -1 to 1 (z is ignored)}}
|p8_type|p8_name|p8_desc|p8_hover
{{#vardefine:p_flex_float_desc|ranges from 0.0 to 10.0}}
|p9_type|p9_name|p9_desc|p9_hover
{{#vardefine:p_twist_end_desc|ranges from -0.5 (-180 degree in the edit window) to 0.5 (+180 degree in the edit window)}}
|p10_type|p10_name|p10_desc|p10_hover
{{#vardefine:p_hole_size_y_desc|ranges from 0.05 (large hole) to 0.50 (no hole)}}
|p11_type|p11_name|p11_desc|p11_hover
{{#vardefine:p_size_desc|ranges from 0.01 to 10.0 for x, y and z}}
|p12_type|p12_name|p12_desc|p12_hover
{{#vardefine:p_rot_desc|any valid rotation}}
|constants
{{#vardefine:p_topshear_x_desc|ranges from 0.05 to 0.50}}
|spec
{{#vardefine:p_boolean_desc|TRUE (enables) or FALSE (disables)}}
|caveats
{{LSL_Function/color|color}}
|examples
{{LSL_Function/alpha|alpha}}
|helpers
{{LSL_Function/face|face|flag|return={{#ifeq:{{{1|get}}}|get|...
|also_header
:{{{!}}{{Prettytable}}
|also_functions
{{!}}-{{Hl2}}
|also_tests
!{{HoverText|flag|PRIM_* flag}}
|also_events
!Return if face is invalid
|also_articles
{{!}}-
|also_footer
{{!!}} [ [[PRIM_TEXTURE]] ] {{!!}} [ {{HoverText|""|string texture}}, {{HoverLink|ZERO_VECTOR|{{LSL VR|0.0|0.0|0.0}} vector repeats}}, {{HoverLink|ZERO_VECTOR|{{LSL VR|0.0|0.0|0.0}} vector offsets}}, {{HoverText|0.0|float rotation_in_radians}} ]
|notes
{{!}}-
|mode
{{!!}} [ [[PRIM_COLOR]] ] {{!!}} [ {{HoverLink|ZERO_VECTOR|{{LSL VR|0.0|0.0|0.0}} vector color}}, {{HoverText|0.0|float alpha}} ]
|deprecated
{{!}}-
|location
{{!!}} [ [[PRIM_BUMP_SHINY]] ] {{!!}} [ {{HoverLink|PRIM_SHINY_NONE|(0) integer shiny}}, {{HoverLink|PRIM_BUMP_NONE|(0) integer bump}} ]
|cat1
{{!}}-
|cat2
{{!!}} [ [[PRIM_FULLBRIGHT]] ] {{!!}} [ {{HoverLink|FALSE|(0) integer boolean}} ]
|cat3
{{!}}-
|cat4
{{!!}} [ [[PRIM_TEXGEN]] ] {{!!}} [ {{HoverLink|PRIM_TEXGEN_DEFAULT|(0) integer type}} ]
|cat5
{{!}}}
|cat6
}}}}
}}
{{LSL_Function/inventory|map|uuid=true|type=texture|{{#ifeq:{{{1|}}}|get|no_caveat=true}}|full={{{remote|}}}}}
</pre>
{{LSL_Function/inventory|texture|uuid=true|type=texture|{{#ifeq:{{{1|}}}|get|no_caveat=true}}|full={{{remote|}}}}}
 
{{#vardefine:p_rotation_in_radians_desc|}}
The LSL_Function template is a intermediate template for LSL_Generic, which handles the formating for both functions and events (LSL_Event is also an intermediate template). The main job of this template is to change the parameter, names & setup the right-side floater. Also makes permission requirements a part of the template.
{{#vardefine:p_force_desc|}}
 
{{#vardefine:p_intensity_desc|}}
{| {{Prettytable}}
{{#vardefine:p_radius_desc|}}
|-{{Hl2}}
{{#vardefine:p_falloff_desc|}} }}
!parameter
{{!}}- {{Hl2}}
!desc
! colspan="2" {{!}} Parameter
!example
! colspan="2" {{!}} Additional Parameters
|-
! colspan="6" {{!}} Description
|func
{{!}}-
|Function name
{{LSL ConstTB|PRIM_TYPE|integer|9|b=[&nbsp;|e=&nbsp;]|s=rowspan="18"}}
|-
{{!}} colspan="2" {{!}} [ [[integer]]&nbsp;{{HoverText|flag|PRIM_TYPE_* flag}} ]
|func_id
{{!}} colspan="6" {{!}} {{GetSet|{{{1|}}}|Gets|Sets}} the prim shape.
|{{LSLG|Function ID}}
{{!}}-
|1.0
! colspan="2" {{!}} {{HoverText|flag|PRIM_TYPE_* flag}} Constants
|-
! colspan="6" {{!}} Flag Parameters
|func_sleep
{{!}}-
|{{LSLG|Delay}}
{{LSL ConstTB|PRIM_TYPE_BOX|integer|0}}
|0.0
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_box|twist}}, [[vector]]&nbsp;{{LSL Param|z_taper|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
|-
{{!}}-
|func_energy
{{LSL ConstTB|PRIM_TYPE_CYLINDER|integer|1}}
|{{LSLG|Energy}}
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_box|twist}}, [[vector]]&nbsp;{{LSL Param|z_taper|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
|10.0
{{!}}-
|-
{{LSL ConstTB|PRIM_TYPE_PRISM|integer|2}}
|func_desc
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_box|twist}}, [[vector]]&nbsp;{{LSL Param|z_taper|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
|Function description text.
{{!}}-
|Gives the monkey a banana
{{LSL ConstTB|PRIM_TYPE_SPHERE|integer|3}}
|-
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_torus|twist}}, [[vector]]&nbsp;{{LSL Param|cut|dimple}}]
|func_footnote
{{!}}-
|Function footnote (appears after the parameters text).
{{LSL ConstTB|PRIM_TYPE_TORUS|integer|4}}
|Has the side effect of causing the avatar to run in circles shouting like on fire.
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_torus|twist}}, [[vector]]&nbsp;{{LSL Param|hole_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}, [[vector]]&nbsp;{{LSL Param|cut|advanced_cut}}, [[vector]]&nbsp;{{LSL Param|taper}}, [[float]]&nbsp;{{LSL Param|revolutions}}, [[float]]&nbsp;{{LSL Param|radius_offset}}, [[float]]&nbsp;{{LSL Param|skew}}&nbsp;]
|-
{{!}}-
|return_type
{{LSL ConstTB|PRIM_TYPE_TUBE|integer|5}}
|return type
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_torus|twist}}, [[vector]]&nbsp;{{LSL Param|hole_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}, [[vector]]&nbsp;{{LSL Param|cut|advanced_cut}}, [[vector]]&nbsp;{{LSL Param|taper}}, [[float]]&nbsp;{{LSL Param|revolutions}}, [[float]]&nbsp;{{LSL Param|radius_offset}}, [[float]]&nbsp;{{LSL Param|skew}}&nbsp;]
|integer
{{!}}-
|-
{{LSL ConstTB|PRIM_TYPE_RING|integer|6}}
|return_text
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_torus|twist}}, [[vector]]&nbsp;{{LSL Param|hole_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}, [[vector]]&nbsp;{{LSL Param|cut|advanced_cut}}, [[vector]]&nbsp;{{LSL Param|taper}}, [[float]]&nbsp;{{LSL Param|revolutions}}, [[float]]&nbsp;{{LSL Param|radius_offset}}, [[float]]&nbsp;{{LSL Param|skew}}&nbsp;]
|"Returns a return_type return_text" in most cases return_text can be used instead of func_desc.
{{!}}-
|that is a monkey
{{LSL ConstTB|PRIM_TYPE_SCULPT|integer|7}}
|-
{{!}} colspan="6" {{!}} [ [[string]]&nbsp;{{LSL Param|map}},&nbsp;[[integer]]&nbsp;{{LSL Param|type}}&nbsp;] [[Sculpted_Prims:_FAQ]]
|p1_type
{{!}}-
|first parameter type
{{!}} rowspan="8" colspan="2" {{!}} &nbsp;
|-
! colspan="2" {{!}} {{LSL Param|hole_shape}}&nbsp;Flags
|p1_name
!{{!}} Shape
|first parameter name
! colspan="2" {{!}} {{LSL Param|hole_shape}}&nbsp;Flags
|-
!{{!}} Shape
|p1_desc
{{!}}-
|first parameter desc
{{LSL ConstTB|PRIM_HOLE_DEFAULT|integer|hex=0x00}}
|-
{{!}} Default
|p1_hover
{{LSL ConstTB|PRIM_HOLE_SQUARE|integer|hex=0x20}}
|first parameter hover, if not included it defaults to p1_desc
{{!}} Square
|-
{{!}}-
|p2_type
{{LSL ConstTB|PRIM_HOLE_CIRCLE|integer|hex=0x10}}
|second parameter type
{{!}} Circle
|-
{{LSL ConstTB|PRIM_HOLE_TRIANGLE|integer|hex=0x30}}
|p2_name
{{!}} Triangle
|second parameter name
{{!}}-
|-
! colspan="2" {{!}} {{LSL Param|type}}&nbsp;Flags
|p2_desc
! {{!}} Style
|second parameter desc
! colspan="3" {{!}} Description
|-
{{!}}-
|p2_hover
{{LSL ConstTB|PRIM_SCULPT_TYPE_SPHERE|integer|1}}
|second parameter hover, if not included it defaults to p2_desc
{{!}}Sphere
|-
{{!}} colspan="3" {{!}} Converge top & bottom, stitch left side to right
|...
{{!}}-
|
{{LSL ConstTB|PRIM_SCULPT_TYPE_TORUS|integer|2}}
|
{{!}}Torus
|-
{{!}} colspan="3" {{!}} Stitch top to bottom, stitch left side to right
|p12_type
{{!}}-
|twelfth parameter type
{{LSL ConstTB|PRIM_SCULPT_TYPE_PLANE|integer|3}}
|
{{!}}Plane
|-
{{!}} colspan="3" {{!}} No stitching or converging
|p12_name
{{!}}-
|twelfth parameter name
{{LSL ConstTB|PRIM_SCULPT_TYPE_CYLINDER|integer|4}}
|-
{{!}}Cylinder
|p12_desc
{{!}} colspan="3" {{!}} Stitch left side to right, double sided polygons?
|twelfth parameter desc
{{!}}-
|-
{{!}} colspan="10" {{!}}
|p12_hover
{{!}}-
|twelfth parameter hover, if not included it defaults to p12_desc
{{LSL ConstTB|PRIM_MATERIAL|integer|2|b=[&nbsp;|e=&nbsp;]|s=rowspan="10"}}
|-
{{!}} colspan="2" {{!}} [ [[integer]]&nbsp;{{HoverText|flag|PRIM_MATERIAL_* flag}}]
|constants
{{!}} colspan="6" {{!}} {{GetSet|{{{1|}}}|Gets|Sets}} the prim's material. The material determines the default [[llCollisionSound|collision sound]] & [[llCollisionSprite|sprite]].
|constants area, no box, please use a table for this section.
{{!}}-
|
! colspan="2" {{!}} {{HoverText|flag|PRIM_MATERIAL_* flag}} Constants
|-
! colspan="6" {{!}} Flag Description
|spec
{{!}}-
|spec box
{{LSL ConstTB|PRIM_MATERIAL_STONE|integer|0|m=3|s3=colspan="6"|c=stone}}
|
{{!}}-
|-
{{LSL ConstTB|PRIM_MATERIAL_METAL|integer|1|m=3|s3=colspan="6"|c=metal}}
|caveats
{{!}}-
|caveats box
{{LSL ConstTB|PRIM_MATERIAL_GLASS|integer|2|m=3|s3=colspan="6"|c=glass}}
|
{{!}}-
|-
{{LSL ConstTB|PRIM_MATERIAL_WOOD|integer|3|m=3|s3=colspan="6"|c=wood}}
|examples
{{!}}-
|examples box
{{LSL ConstTB|PRIM_MATERIAL_FLESH|integer|4|m=3|s3=colspan="6"|c=flesh}}
|
{{!}}-
|-
{{LSL ConstTB|PRIM_MATERIAL_PLASTIC|integer|5|m=3|s3=colspan="6"|c=plastic}}
|helpers
{{!}}-
|helper functions box
{{LSL ConstTB|PRIM_MATERIAL_RUBBER|integer|6|m=3|s3=colspan="6"|c=rubber}}
|
{{!}}-
|-
{{LSL ConstTB|PRIM_MATERIAL_LIGHT|integer|7|b=<s>|e=</s>|c=light, DEPRECATED: Looks the same as [&nbsp;PRIM_FULLBRIGHT, ALL_SIDES, TRUE&nbsp;]}}
|also_header
{{!}} colspan="6" {{!}}light, '''DEPRECATED''': Looks the same as [&nbsp;[[PRIM_FULLBRIGHT]], [[ALL_SIDES]], [[TRUE]]&nbsp;]
|also header
|
|-
|also_functions
|also functions indent
|
|-
|also_events
|also events indent
|
|-
|also_articles
|also articles indent
|
|-
|also_tests
|also tests indent
|
|-
|also_footer
|also footer
|
|-
|notes
|notes box
|
|-
|mode
|if mode equals 'god' then it is tagged as requiring godmode. if set to 'request' marks the page as a feature request.
|
|-
|deprecated
|Marks the function as deprecated. Set the value to the replacement functions name or 'none'. If it is not set to none and it is infact set, it will include a link to the replacement function.
|-
|self
|Special field that you only set if you don't want the function to be included in any categories.
|
|-
|cat1
|An LSL specific category and sets the proper sort. (example would add the function to the "LSL Stub" category)
|Stub
|-
|cat2
|"
|-
|cat3
|"
|-
|cat4
|"
|-
|cat5
|"
|-
|cat6
|"
|-
|sort
|not required but used to specify the sort order, if excluded the wiki will calculate this value for you.
|-
|location
|optional: location box, used to say which source file it is defined in.
|-
|history
|a box for function history
|}
 
<div id="box">
{{{{FULLPAGENAME}}
|func=MyFunction
|func_id=-1
|func_sleep=100.5
|func_energy=0.0
|func_desc=A fictitious function
|func_footnote=func_footnote
|return_type=void
|return_text=(aka nadda, nothing).
|p1_type=integer|p1_name=i|p1_desc
|p2_type=float|p2_name=f|p2_desc
|p3_type=string|p3_name=s|p3_desc
|p4_type=key|p4_name=k|p4_desc
|p5_type=list|p5_name=l|p5_desc
|p6_type=vector|p6_name=v|p6_desc
|p7_type=rotation|p7_name=r|p7_desc
|constants=constants
|spec=spec
|caveats=caveats
|examples=examples
|helpers=helpers
|also_header=also_header
|also_events=*also_events
|also_functions=*also_functions
|also_articles=*also_articles
|also_tests=*also_tests
|also_footer=also_footer
|notes=notes
|mode
|self=self
|location=location
|history=history
}}
</div>
</noinclude><includeonly>{{#if:{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{{sort|}}}}}}}{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}}<div id="sort" style="display:none">{{DEFAULTSORT:{{#var:sort}}}}{{#var:sort}}</div>{{#if:{{#var:nofixname}}||{{#if:{{#pos:{{lc:{{FULLPAGENAMEE}}}}|{{lc:{{{func}}}}}}}|<div id="RealTitleBanner" style="display:none"><span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{func}}}</span></div>}}}}{{#if:
{{#vardefine:history|{{{history|}}}}}
{{#vardefine:func_id|{{{func_id|}}}}}
{{#vardefine:p_{{{p1_name|}}}_desc|{{#var:p_{{{p1_name|}}}_desc}}{{{p1_desc|}}}}}
{{#vardefine:p_{{{p1_name|}}}_hover|{{#var:p_{{{p1_name|}}}_hover}}{{{p1_hover|}}}}}
{{#vardefine:p_{{{p2_name|}}}_desc|{{#var:p_{{{p2_name|}}}_desc}}{{{p2_desc|}}}}}
{{#vardefine:p_{{{p2_name|}}}_hover|{{#var:p_{{{p2_name|}}}_hover}}{{{p2_hover|}}}}}
{{#vardefine:p_{{{p3_name|}}}_desc|{{#var:p_{{{p3_name|}}}_desc}}{{{p3_desc|}}}}}
{{#vardefine:p_{{{p3_name|}}}_hover|{{#var:p_{{{p3_name|}}}_hover}}{{{p3_hover|}}}}}
{{#vardefine:p_{{{p4_name|}}}_desc|{{#var:p_{{{p4_name|}}}_desc}}{{{p4_desc|}}}}}
{{#vardefine:p_{{{p4_name|}}}_hover|{{#var:p_{{{p4_name|}}}_hover}}{{{p4_hover|}}}}}
{{#vardefine:p_{{{p5_name|}}}_desc|{{#var:p_{{{p5_name|}}}_desc}}{{{p5_desc|}}}}}
{{#vardefine:p_{{{p5_name|}}}_hover|{{#var:p_{{{p5_name|}}}_hover}}{{{p5_hover|}}}}}
{{#vardefine:p_{{{p6_name|}}}_desc|{{#var:p_{{{p6_name|}}}_desc}}{{{p6_desc|}}}}}
{{#vardefine:p_{{{p6_name|}}}_hover|{{#var:p_{{{p6_name|}}}_hover}}{{{p6_hover|}}}}}
{{#vardefine:p_{{{p7_name|}}}_desc|{{#var:p_{{{p7_name|}}}_desc}}{{{p7_desc|}}}}}
{{#vardefine:p_{{{p7_name|}}}_hover|{{#var:p_{{{p7_name|}}}_hover}}{{{p7_hover|}}}}}
{{#vardefine:p_{{{p8_name|}}}_desc|{{#var:p_{{{p8_name|}}}_desc}}{{{p8_desc|}}}}}
{{#vardefine:p_{{{p8_name|}}}_hover|{{#var:p_{{{p8_name|}}}_hover}}{{{p8_hover|}}}}}
{{#vardefine:p_{{{p9_name|}}}_desc|{{#var:p_{{{p9_name|}}}_desc}}{{{p9_desc|}}}}}
{{#vardefine:p_{{{p9_name|}}}_hover|{{#var:p_{{{p9_name|}}}_hover}}{{{p9_hover|}}}}}
{{#vardefine:p_{{{p10_name|}}}_desc|{{#var:p_{{{p10_name|}}}_desc}}{{{p10_desc|}}}}}
{{#vardefine:p_{{{p10_name|}}}_hover|{{#var:p_{{{p10_name|}}}_hover}}{{{p10_hover|}}}}}
{{#vardefine:p_{{{p11_name|}}}_desc|{{#var:p_{{{p11_name|}}}_desc}}{{{p11_desc|}}}}}
{{#vardefine:p_{{{p11_name|}}}_hover|{{#var:p_{{{p11_name|}}}_hover}}{{{p11_hover|}}}}}
{{#vardefine:p_{{{p12_name|}}}_desc|{{#var:p_{{{p12_name|}}}_desc}}{{{p12_desc|}}}}}
{{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}}
{{#vardefine:return_text|{{#var:return_text}}{{{return_text|}}} }}
{{#vardefine:spec|{{#if:{{#var:spec}}|{{#var:spec}}<br/>}}{{{spec|}}}}}
{{#vardefine:examples|{{#var:examples}}{{{examples|}}}}}
{{#vardefine:helpers|{{#var:helpers}}{{{helpers|}}}}}
{{#vardefine:also_header|{{#var:also_header}}{{{also_header|}}}}}
{{#vardefine:also_tests|{{#var:also_tests}}
{{{also_tests|}}}}}
{{#vardefine:also_events|{{#var:also_events}}
{{{also_events|}}}}}
{{#vardefine:also_functions|{{#var:also_functions}}
{{{also_functions|}}}}}
{{#vardefine:also_articles|{{#var:also_articles}}
{{{also_articles|}}}}}
{{#vardefine:also_footer|{{#var:also_footer}}{{{also_footer|}}}}}
{{#vardefine:notes|{{#var:notes}}{{{notes|}}}}}
{{#vardefine:mode|{{#var:mode}}{{{mode|}}}}}
{{#vardefine:self|{{#var:self}}{{{self|}}}}}
{{#vardefine:type|function}}
{{#vardefine:caveats|{{#ifexpr:{{{func_sleep|0.0}}}> 0.0|*This function causes the script to sleep for {{{func_sleep|}}} seconds.}}{{#if:{{#var:caveats}}|
{{#var:caveats}}}}
{{{caveats|}}}}}
{{#vardefine:location|{{#var:location}}{{{location|}}}}}
{{#vardefine:header_footnote|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}}{{{func_footnote|}}}{{{func_footer|}}}}}
{{#vardefine:header_desc|{{#if:{{#var:header_desc}}|{{#var:header_desc}}<br/>}}{{#var:header_desc}}{{{func_desc|}}}}}
{{{{#ifeq:{{#var:mode}}|god|LSL_Generic/god|!}}|}}
{{{{#ifeq:{{#var:mode}}|request|LSL_Generic/request|!}}|}}
{{{{#if:{{{deprecated|}}}|LSL_Generic/deprecated|!}}|{{{deprecated|}}}|}}
}}{{#if:{{#var:self}}|| __NOEDITSECTION__
}}{{#var:header}}{{#if:{{#var:func_id}}{{#var:mode}}||
<div id="box" style="background:red;">
&nbsp;&nbsp;'''Don't delete the 'func_id''''
<div style="padding: 0.5em;background:#ffffff;">
''func_id is a bit of technical information that should not be removed as it is pertinent to anyone writing an LSL compiler or decompiler, so you go and revert the page or set the value properly right now :P.''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }}{{#if:{{{also|}}}|<div id="box" style="background:yellow;">
&nbsp;&nbsp;''' 'also' Tag Removed'''
<div style="padding: 0.5em;background:#ffffff;">
''(Please use 'also_header','also_events','also_functions','also_articles', or 'also_footer')''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }}{{#if:{{#if:{{{return_type|}}}|{{#var:return_text}}}}{{{func_desc|}}}||<div id="box" style="background:yellow;">
&nbsp;&nbsp;''' 'return_text' and 'func_desc' can both not be undefined'''
<div style="padding: 0.5em;background:#ffffff;">
''(Please use 'return_text' or 'func_desc' to describe the functions actions.)''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }}
{{{!}} width="100%"
{{!}}-
{{!}}-
{{!}} valign="top" {{!}} <div id="box">
{{LSL ConstTB|PRIM_PHYSICS|integer|3|b=[&nbsp;|e=&nbsp;]}}
<h2>Function: {{#if:{{{return_type|}}}|[[{{{return_type|}}}]]||}} [[{{{func}}}]]( {{#if:{{{p1_name|}}}{{{p1_type|}}}| [[{{{p1_type|}}}]] {{LSL Param|{{{p1_name|}}}}}{{#if:{{{p2_name|}}}{{{p2_type|}}}|, [[{{{p2_type|}}}]] {{LSL Param|{{{p2_name|}}}}}{{#if:{{{p3_name|}}}{{{p3_type|}}}|, [[{{{p3_type|}}}]] {{LSL Param|{{{p3_name|}}}}}{{#if:{{{p4_name|}}}{{{p4_type|}}}|, [[{{{p4_type|}}}]] {{LSL Param|{{{p4_name|}}}}}{{#if:{{{p5_name|}}}{{{p5_type|}}}|, [[{{{p5_type|}}}]] {{LSL Param|{{{p5_name|}}}}}{{#if:{{{p6_name|}}}{{{p6_type|}}}|, [[{{{p6_type|}}}]] {{LSL Param|{{{p6_name|}}}}}{{#if:{{{p7_name|}}}{{{p7_type|}}}|, [[{{{p7_type|}}}]] {{LSL Param|{{{p7_name|}}}}}{{#if:{{{p8_name|}}}{{{p8_type|}}}|, [[{{{p8_type|}}}]] {{LSL Param|{{{p8_name|}}}}}{{#if:{{{p9_name|}}}{{{p9_type|}}}|, [[{{{p9_type|}}}]] {{LSL Param|{{{p9_name|}}}}}{{#if:{{{p10_name|}}}{{{p10_type|}}}|, [[{{{p10_type|}}}]] {{LSL Param|{{{p10_name|}}}}}{{#if:{{{p11_name|}}}{{{p11_type|}}}|, [[{{{p11_type|}}}]] {{LSL Param|{{{p11_name|}}}}}{{#if:{{{p12_name|}}}{{{p12_type|}}}|, [[{{{p12_type|}}}]] {{LSL Param|{{{p12_name|}}}}}}}}}}}}}}}}}}}}}}}}}}}}} )<nowiki>;</nowiki></h2>
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]
<div style="padding: 0.5em"><div id="box" style="float:right;"><table class="collapsible"><tr style="font-size:75%;"><th colspan="2"></tr><tr>
{{!}} colspan="3" {{!}} Physics status {{GetSet|{{{1|}}}|[[llGetStatus]]|[[llSetStatus]]}}
<td> {{HoverText|{{#var:func_id}}|The function index number.}}
<td> [[LSL Function ID|Function ID]]
</tr><tr>
<td> {{HoverText|{{{func_sleep|}}}|The number of seconds this script will sleep after executing this function.}}
<td> [[LSL Delay|Delay]]
</tr>{{#if:{{{func_complexity|}}}|<tr>
<td> {{HoverText|{{{func_complexity|}}}|The complexity of the function based on the parameters.}}
<td> [[LSL Complexity|Compl.]]
</tr>}}<tr>
<td> {{HoverText|{{{func_energy|}}}|The quantity of energy consumed by this function.}}
<td> [[Energy|Energy]]
</tr></table></div>
{{#if:{{#var:header_desc}}|{{#var:header_desc}}<br/>{{#if:{{{return_type|}}}|<br/>}}}}{{#if:{{{return_type|}}}| Returns {{AAn|{{{return_type|}}}}} {{#if:{{#var:return_text}}| {{#var:return_text}} }}<br/>}}
{{#if:{{{p1_name|}}}{{{p1_type|}}}|{{{!}}
{{LSL DefineRow|1={{{p1_type|}}}|2={{{p1_name|}}}|3={{#var:p_{{{p1_name|}}}_desc}}}}
{{#if:{{{p2_name|}}}{{{p2_type|}}}|{{LSL DefineRow|1={{{p2_type|}}}|2={{{p2_name|}}}|3={{#var:p_{{{p2_name|}}}_desc}}}}
{{#if:{{{p3_name|}}}{{{p3_type|}}}|{{LSL DefineRow|1={{{p3_type|}}}|2={{{p3_name|}}}|3={{#var:p_{{{p3_name|}}}_desc}}}}
{{#if:{{{p4_name|}}}{{{p4_type|}}}|{{LSL DefineRow|1={{{p4_type|}}}|2={{{p4_name|}}}|3={{#var:p_{{{p4_name|}}}_desc}}}}
{{#if:{{{p5_name|}}}{{{p5_type|}}}|{{LSL DefineRow|1={{{p5_type|}}}|2={{{p5_name|}}}|3={{#var:p_{{{p5_name|}}}_desc}}}}
{{#if:{{{p6_name|}}}{{{p6_type|}}}|{{LSL DefineRow|1={{{p6_type|}}}|2={{{p6_name|}}}|3={{#var:p_{{{p6_name|}}}_desc}}}}
{{#if:{{{p7_name|}}}{{{p7_type|}}}|{{LSL DefineRow|1={{{p7_type|}}}|2={{{p7_name|}}}|3={{#var:p_{{{p7_name|}}}_desc}}}}
{{#if:{{{p8_name|}}}{{{p8_type|}}}|{{LSL DefineRow|1={{{p8_type|}}}|2={{{p8_name|}}}|3={{#var:p_{{{p8_name|}}}_desc}}}}
{{#if:{{{p9_name|}}}{{{p9_type|}}}|{{LSL DefineRow|1={{{p9_type|}}}|2={{{p9_name|}}}|3={{#var:p_{{{p9_name|}}}_desc}}}}
{{#if:{{{p10_name|}}}{{{p10_type|}}}|{{LSL DefineRow|1={{{p10_type|}}}|2={{{p10_name|}}}|3={{#var:p_{{{p10_name|}}}_desc}}}}
{{#if:{{{p11_name|}}}{{{p11_type|}}}|{{LSL DefineRow|1={{{p11_type|}}}|2={{{p11_name|}}}|3={{#var:p_{{{p11_name|}}}_desc}}}}
{{#if:{{{p12_name|}}}{{{p12_type|}}}|{{LSL DefineRow|1={{{p12_type|}}}|2={{{p12_name|}}}|3={{#var:p_{{{p12_name|}}}_desc}}}}
}}}}}}}}}}}}}}}}}}}}}}
{{!}}} }}
{{#if:{{#var:header_footnote}}|<br/>
{{#var:header_footnote}}}}
<div style="clear:right;" ></div>
</div></div>
{{#if:{{#var:spec}}|{{!}}-
{{!}}<div id="box">
<h2>{{#if:{{#var:T_Specification}}|{{#var:T_Specification}}|Specification}}</h2>
<div style="padding: 0.5em">
{{#var:spec}}
</div></div>}}
{{!}}-
{{!}}-
{{#if:{{#var:constants_nb}}{{#var:constants}}{{{constants|}}}|
{{LSL ConstTB|PRIM_TEMP_ON_REZ|integer|4|b=[&nbsp;|e=&nbsp;]}}
{{!}}{{#var:constants_nb}}{{{constants|}}}{{#if:{{#var:constants}}|
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]
<div id="box"><h2>{{#if:{{#var:T_Constants}}|{{#var:T_Constants}}|Constants}}</h2>
{{!}} colspan="3" {{!}} Temp on rez status {{GetSet|{{{1|}}}|[[llGetStatus]]|[[llSetStatus]]}}
{{#var:constants}}
</div>}}}}
{{!}}-
{{!}}-
{{#if:{{#var:caveats}}|
{{LSL ConstTB|PRIM_PHANTOM|integer|5|b=[&nbsp;|e=&nbsp;]}}
{{!}}<div id="box"><h2>{{#if:{{#var:T_Caveats}}|{{#var:T_Caveats}}|Caveats}}</h2>
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]
<div style="padding: 0.5em">
{{!}} colspan="3" {{!}} Phantom status {{GetSet|{{{1|}}}|[[llGetStatus]]|[[llSetStatus]]}}
{{#var:caveats}}
</div></div>}}
{{!}}-
{{!}}-
{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|
{{LSL ConstTB|PRIM_POSITION|integer|6|b=[&nbsp;|e=&nbsp;]}}
{{!}}<div id="box"><h2>{{#if:{{#var:T_Examples}}|{{#var:T_Examples}}|Examples}}</h2>
{{!}} colspan="5" {{!}} [ [[vector]]&nbsp;{{LSL Param|position}}&nbsp;]
<div style="padding: 0.5em">
{{!}} colspan="3" {{!}} Position, {{GetSet|{{{1|}}}|[[llGetPos]]|[[llSetPos]]}}
{{#var:examples}}
</div></div>}}
{{!}}-
{{!}}-
{{#if:{{#var:helpers}}|
{{LSL ConstTB|PRIM_ROTATION|integer|8|b=[&nbsp;|e=&nbsp;]}}
{{!}}<div id="box"><h2>{{#if:{{#var:T_Useful_Snippets}}|{{#var:T_Useful_Snippets}}|Useful Snippets}}</h2>
{{!}} colspan="5" {{!}} [ [[rotation]]&nbsp;{{LSL Param|rot}}&nbsp;]
<div style="padding: 0.5em">
{{!}} colspan="3" {{!}} Rotation, {{GetSet|{{{1|}}}|[[llGetRot]]|[[llSetRot]]}}
{{#var:helpers}}
</div></div>}}
{{!}}-
{{!}}-
{{#if:{{#var:notes}}|
{{LSL ConstTB|PRIM_SIZE|integer|7|b=[&nbsp;|e=&nbsp;]}}
{{!}}<div id="box"><h2>{{#if:{{#var:T_Notes}}|{{#var:T_Notes}}|Notes}}</h2>
{{!}} colspan="5" {{!}} [ [[vector]]&nbsp;{{LSL Param|size}}&nbsp;]
<div style="padding: 0.5em">
{{!}} colspan="3" {{!}} Size, {{GetSet|{{{1|}}}|[[llGetScale]]|[[llSetScale]]}}
{{#var:notes}}
</div></div>}}
{{!}}-
{{!}}-
{{#if:{{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_tests}}{{#var:also_header}}|
{{LSL ConstTB|PRIM_TEXTURE|integer|17|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]}}
{{!}}<div id="box"><h2>{{#if:{{#var:T_See_Also}}|{{#var:T_See Also}}|See Also}}</h2>
{{!}} colspan="5" {{!}} [ [[string]]&nbsp;{{LSL Param|texture}}, [[vector]]&nbsp;{{LSL Param|repeats}}, [[vector]]&nbsp;{{LSL Param|offsets}}, [[float]]&nbsp;{{LSL Param|rotation_in_radians}}&nbsp;]
<div style="padding: 0.5em">
{{!}} colspan="3" {{!}}
{{#if:{{#var:also_header}}|
{{#var:also_header}}}}{{#if:{{#var:also_events}}|
<h3>{{#if:{{#var:T_Also_Events}}|{{#var:T_Also_Events}}|Events}}</h3>
{{{!}}
{{{!}}
{{#var:also_events}}
{{!}}{{!}}{{LSLGC|Texture}}: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetTexture]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llSetTexture]]}}
{{!}}} }}{{#if:{{#var:also_functions}}|
{{!}}-
<h3>{{#if:{{#var:T_Also_Functions}}|{{#var:T_Also_Functions}}|Functions}}</h3>
{{!}}{{!}}Repeats: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetTextureScale]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llScaleTexture]]}}
{{!}}-
{{!}}{{!}}Offset: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetTextureOffset]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llOffsetTexture]]}}
{{!}}-
{{!}}{{!}}Rotation: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetTextureRot]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llRotateTexture]]}}
{{!}}}
{{!}}-
{{LSL ConstTB|PRIM_COLOR|integer|18|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[vector]]&nbsp;{{LSL Param|color}}, [[float]]&nbsp;{{LSL Param|alpha}}&nbsp;]
{{!}} colspan="3" {{!}}  
{{{!}}
{{{!}}
{{#var:also_functions}}
{{!}}{{!}}{{LSLGC|Alpha}}: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetAlpha]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llSetAlpha]]}}
{{!}}} }}{{#if:{{#var:also_tests}}|
{{!}}-
<h3>{{#if:{{#var:T_Also_Tests}}|{{#var:T_Also_Tests}}|Tests}}</h3>
{{!}}{{!}}{{LSLGC|Color}}: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetColor]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llSetColor]]}}
{{{!}}
{{!}}}
{{#var:also_tests}}
{{!}}-
{{!}}} }}{{#if:{{#var:also_articles}}|
{{LSL ConstTB|PRIM_BUMP_SHINY|integer|19|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]|s=rowspan="25"}}
<h3>{{#if:{{#var:T_Also_Articles}}|{{#var:T_Also_Articles}}|Articles}}</h3>
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{HoverText|shiny|PRIM_SHINY_* flag}}, [[integer]]&nbsp;{{HoverText|bump|PRIM_BUMP_* flag}}&nbsp;]
{{{!}}
{{!}} colspan="3" {{!}}
{{#var:also_articles}}
{{!}}-
{{!}}} }}
! colspan="2" {{!}} {{HoverText|shiny|PRIM_SHINY_* flag}} & {{HoverText|bump|PRIM_BUMP_* flag}} Constants
{{#if:{{#var:also_footer}}|<br/>{{#var:also_footer}}}}
! colspan="6" {{!}} Description
</div></div>}}
{{!}}-
{{LSL ConstTB|PRIM_SHINY_NONE|integer|0|m=3|s3=colspan="6"|c=none}}
{{!}}-
{{LSL ConstTB|PRIM_SHINY_LOW|integer|1|m=3|s3=colspan="6"|c=low}}
{{!}}-
{{LSL ConstTB|PRIM_SHINY_MEDIUM|integer|2|m=3|s3=colspan="6"|c=medium}}
{{!}}-
{{LSL ConstTB|PRIM_SHINY_HIGH|integer|3|m=3|s3=colspan="6"|c=high}}
{{!}}-
{{!}}-
{{#if:{{#var:location}}|
{{!}}
{{!}}
<div id="box">
{{!}}
<h2>{{#if:{{#var:T_Source_Location}}|{{#var:T_Source_Location}}|Source Location}}</h2>
{{!}} colspan="6" {{!}}
<div style="padding: 0.5em">
{{!}}-
{{#var:location}}
{{LSL ConstTB|PRIM_BUMP_NONE|integer|0|m=3|s3=colspan="6"|c=none: no bump map}}
</div></div>}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_BRIGHT|integer|1|m=3|s3=colspan="6"|c=brightness: generate from highlights}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_DARK|integer|2|m=3|s3=colspan="6"|c=darkness: generate from lowlights}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_WOOD|integer|3|m=3|s3=colspan="6"|c=woodgrain}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_BARK|integer|4|m=3|s3=colspan="6"|c=bark}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_BRICKS|integer|5|m=3|s3=colspan="6"|c=bricks}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_CHECKER|integer|6|m=3|s3=colspan="6"|c=checker}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_CONCRETE|integer|7|m=3|s3=colspan="6"|c=concrete}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_TILE|integer|8|m=3|s3=colspan="6"|c=crustytile}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_STONE|integer|9|m=3|s3=colspan="6"|c=cutstone: blocks}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_DISKS|integer|10|m=3|s3=colspan="6"|c=discs: packed circles}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_GRAVEL|integer|11|m=3|s3=colspan="6"|c=gravel}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_BLOBS|integer|12|m=3|s3=colspan="6"|c=petridish: blobby amoeba like shapes}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_SIDING|integer|13|m=3|s3=colspan="6"|c=siding}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_LARGETILE|integer|14|m=3|s3=colspan="6"|c=stonetile}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_STUCCO|integer|15|m=3|s3=colspan="6"|c=stucco}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_SUCTION|integer|16|m=3|s3=colspan="6"|c=suction: rings}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_WEAVE|integer|17|m=3|s3=colspan="6"|c=weave}}
{{!}}-
{{LSL ConstTB|PRIM_FULLBRIGHT|integer|20|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]
{{!}} colspan="3" {{!}}
{{!}}-
{{LSL ConstTB|PRIM_FLEXIBLE|integer|21|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}, [[integer]]&nbsp;{{HoverText|softness|ranges from 0 to 4}}, [[float]]&nbsp;{{LSL Param|flex_float|gravity}}, [[float]]&nbsp;{{LSL Param|flex_float|friction}}, [[float]]&nbsp;{{LSL Param|flex_float|wind}}, [[float]]&nbsp;{{LSL Param|flex_float|tension}}, [[vector]]&nbsp;{{LSL Param|force}}&nbsp;]
{{!}} colspan="3" {{!}}
{{!}}-
{{LSL ConstTB|PRIM_TEXGEN|integer|22|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]|s=rowspan="4"}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{HoverText|type|PRIM_TEXGEN_* flag}}&nbsp;]
{{!}} colspan="3" {{!}}
{{!}}-
! colspan="2" {{!}} {{HoverText|type|PRIM_TEXGEN_* flag}} Constants
! colspan="6" {{!}} Description
{{!}}-
{{LSL ConstTB|PRIM_TEXGEN_DEFAULT|integer|0|m=3|s3=colspan="6"|c=}}
{{!}}-
{{LSL ConstTB|PRIM_TEXGEN_PLANAR|integer|1|m=3|s3=colspan="6"|c=}}
{{!}}-
{{LSL ConstTB|PRIM_POINT_LIGHT|integer|23|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}, [[vector]]&nbsp;{{LSL Param|color}}, [[float]]&nbsp;{{LSL Param|intensity}}, [[float]]&nbsp;{{LSL Param|radius}}, [[float]]&nbsp;{{LSL Param|falloff}}&nbsp;]
{{!}} colspan="3" {{!}}
{{!}}-
{{#ifeq:{{{1|set}}}|set|
{{!}} rowspan="8" {{!}} [ 1 ]<br/><s>PRIM_TYPE_LEGACY</s>
{{!}} rowspan="8" {{!}} 1
{{!}} colspan="8" {{!}} [ [[integer]]&nbsp;{{HoverText|flag|PRIM_TYPE_* flag}}, paramaters ]
{{!}}-
! colspan="2" {{!}} {{HoverText|flag|PRIM_TYPE_* flag}} Constants
! colspan="6" {{!}} Flag Parameters
{{!}}-
{{LSL ConstTB|PRIM_TYPE_BOX|integer|0}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[vector]]&nbsp;{{LSL Param|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_TYPE_CYLINDER|integer|1}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[vector]]&nbsp;{{LSL Param|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_TYPE_PRISM|integer|2}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[vector]]&nbsp;{{LSL Param|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_TYPE_SPHERE|integer|3}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|cut|dimple}}&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_TYPE_TORUS|integer|4}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[float]]&nbsp;{{LSL Param|hole_size_y}}, [[vector]]&nbsp;{{LSL Param|top_shear}}, [[vector]]&nbsp;{{LSL Param|cut|advanced_cut}}&nbsp;]
{{!}}-
{{!}}-
{{#if:{{#var:history}}|
{{LSL ConstTB|PRIM_TYPE_TUBE|integer|5}}
{{!}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[float]]&nbsp;{{LSL Param|topshear_x}}&nbsp;]
}}
{{!}}}
<noinclude>
<div id="box">
<div id="box">
<h2>{{#if:{{#var:T_History}}|{{#var:T_History}}|History}}</h2>
== Caveats ==
<div style="padding: 0.5em">
<div style="padding: 0.5em;">
{{#var:history}}
{{#var:caveats}}
</div></div>}}
</div></div>
{{!}}}
</noinclude>
{{#var:footer}} {{#if:{{#var:self}}|| {{#ifeq:{{#var:mode}}|request|| [[Category:LSL Functions]] {{#if:{{#var:examples}}||[[Category:LSL Needs Example]]}}}} {{#if:{{{cat1|}}}|[[Category:LSL {{{cat1}}}]]}} {{#if:{{{cat2|}}}|[[Category:LSL {{{cat2}}}]]}} {{#if:{{{cat3|}}}|[[Category:LSL {{{cat3}}}]]}} {{#if:{{{cat4|}}}|[[Category:LSL {{{cat4}}}]]}} {{#if:{{{cat5|}}}|[[Category:LSL {{{cat5}}}]]}} {{#if:{{{cat6|}}}|[[Category:LSL {{{cat6}}}]]}} {{#if:{{{cat7|}}}|[[Category:LSL {{{cat7}}}]]}} {{#if:{{{cat8|}}}|[[Category:LSL {{{cat8}}}]]}} }}</includeonly>

Revision as of 19:06, 20 July 2007

Parameter Additional Parameters Description
PRIM_TYPE ] 9 [ integer flag ] Gets / Sets the prim shape.
flag Constants Flag Parameters
PRIM_TYPE_BOX 0 [ integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ]
PRIM_TYPE_CYLINDER 1 [ integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ]
PRIM_TYPE_PRISM 2 [ integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ]
PRIM_TYPE_SPHERE 3 [ integer hole_shape, vector cut, float hollow, vector twist, vector dimple]
PRIM_TYPE_TORUS 4 [ integer hole_shape, vector cut, float hollow, vector twist, vector hole_size, vector top_shear, vector advanced_cut, vector taper, float revolutions, float radius_offset, float skew ]
PRIM_TYPE_TUBE 5 [ integer hole_shape, vector cut, float hollow, vector twist, vector hole_size, vector top_shear, vector advanced_cut, vector taper, float revolutions, float radius_offset, float skew ]
PRIM_TYPE_RING 6 [ integer hole_shape, vector cut, float hollow, vector twist, vector hole_size, vector top_shear, vector advanced_cut, vector taper, float revolutions, float radius_offset, float skew ]
PRIM_TYPE_SCULPT 7 [ string mapinteger type ] Sculpted_Prims:_FAQ
  hole_shape Flags Shape hole_shape Flags Shape
PRIM_HOLE_DEFAULT 0x00 Default PRIM_HOLE_SQUARE 0x20 Square
PRIM_HOLE_CIRCLE 0x10 Circle PRIM_HOLE_TRIANGLE 0x30 Triangle
type Flags Style Description
PRIM_SCULPT_TYPE_SPHERE 1 Sphere Converge top & bottom, stitch left side to right
PRIM_SCULPT_TYPE_TORUS 2 Torus Stitch top to bottom, stitch left side to right
PRIM_SCULPT_TYPE_PLANE 3 Plane No stitching or converging
PRIM_SCULPT_TYPE_CYLINDER 4 Cylinder Stitch left side to right, double sided polygons?
PRIM_MATERIAL ] 2 [ integer flag] Gets / Sets the prim's material. The material determines the default collision sound & sprite.
flag Constants Flag Description
PRIM_MATERIAL_STONE 0 stone
PRIM_MATERIAL_METAL 1 metal
PRIM_MATERIAL_GLASS 2 glass
PRIM_MATERIAL_WOOD 3 wood
PRIM_MATERIAL_FLESH 4 flesh
PRIM_MATERIAL_PLASTIC 5 plastic
PRIM_MATERIAL_RUBBER 6 rubber
PRIM_MATERIAL_LIGHT 7 light, DEPRECATED: Looks the same as [ PRIM_FULLBRIGHT, ALL_SIDES, TRUE ]
PRIM_PHYSICS ] 3 [ integer boolean ] Physics status llGetStatus / llSetStatus
PRIM_TEMP_ON_REZ ] 4 [ integer boolean ] Temp on rez status llGetStatus / llSetStatus
PRIM_PHANTOM ] 5 [ integer boolean ] Phantom status llGetStatus / llSetStatus
PRIM_POSITION ] 6 [ vector position ] Position, llGetPos / llSetPos
PRIM_ROTATION ] 8 [ rotation rot ] Rotation, llGetRot / llSetRot
PRIM_SIZE ] 7 [ vector size ] Size, llGetScale / llSetScale
PRIM_TEXTURE, integer face ] 17 [ string texture, vector repeats, vector offsets, float rotation_in_radians ]
Texture: llGetTexture llSetTexture
Repeats: llGetTextureScale llScaleTexture
Offset: llGetTextureOffset llOffsetTexture
Rotation: llGetTextureRot llRotateTexture
PRIM_COLOR, integer face ] 18 [ vector color, float alpha ]
Alpha: llGetAlpha llSetAlpha
Color: llGetColor llSetColor
PRIM_BUMP_SHINY, integer face ] 19 [ integer shiny, integer bump ]
shiny & bump Constants Description
PRIM_SHINY_NONE 0 none
PRIM_SHINY_LOW 1 low
PRIM_SHINY_MEDIUM 2 medium
PRIM_SHINY_HIGH 3 high
PRIM_BUMP_NONE 0 none: no bump map
PRIM_BUMP_BRIGHT 1 brightness: generate from highlights
PRIM_BUMP_DARK 2 darkness: generate from lowlights
PRIM_BUMP_WOOD 3 woodgrain
PRIM_BUMP_BARK 4 bark
PRIM_BUMP_BRICKS 5 bricks
PRIM_BUMP_CHECKER 6 checker
PRIM_BUMP_CONCRETE 7 concrete
PRIM_BUMP_TILE 8 crustytile
PRIM_BUMP_STONE 9 cutstone: blocks
PRIM_BUMP_DISKS 10 discs: packed circles
PRIM_BUMP_GRAVEL 11 gravel
PRIM_BUMP_BLOBS 12 petridish: blobby amoeba like shapes
PRIM_BUMP_SIDING 13 siding
PRIM_BUMP_LARGETILE 14 stonetile
PRIM_BUMP_STUCCO 15 stucco
PRIM_BUMP_SUCTION 16 suction: rings
PRIM_BUMP_WEAVE 17 weave
PRIM_FULLBRIGHT, integer face ] 20 [ integer boolean ]
PRIM_FLEXIBLE ] 21 [ integer boolean, integer softness, float gravity, float friction, float wind, float tension, vector force ]
PRIM_TEXGEN, integer face ] 22 [ integer type ]
type Constants Description
PRIM_TEXGEN_DEFAULT 0
PRIM_TEXGEN_PLANAR 1
PRIM_POINT_LIGHT ] 23 [ integer boolean, vector color, float intensity, float radius, float falloff ]
[ 1 ]
PRIM_TYPE_LEGACY
1 [ integer flag, paramaters ]
flag Constants Flag Parameters
PRIM_TYPE_BOX 0 [ vector cut, float hollow, float twist_end, vector top_size, vector top_shear ]
PRIM_TYPE_CYLINDER 1 [ vector cut, float hollow, float twist_end, vector top_size, vector top_shear ]
PRIM_TYPE_PRISM 2 [ vector cut, float hollow, float twist_end, vector top_size, vector top_shear ]
PRIM_TYPE_SPHERE 3 [ vector cut, float hollow, vector dimple ]
PRIM_TYPE_TORUS 4 [ vector cut, float hollow, float twist_end, float hole_size_y, vector top_shear, vector advanced_cut ]
PRIM_TYPE_TUBE 5 [ vector cut, float hollow, float twist_end, float topshear_x ]

Caveats

  • If face indicates a face that does not exist the flag return is ...
flag Return if face is invalid
[ PRIM_TEXTURE ] [ "", ZERO_VECTOR, ZERO_VECTOR, 0.0 ]
[ PRIM_COLOR ] [ ZERO_VECTOR, 0.0 ]
[ PRIM_BUMP_SHINY ] [ PRIM_SHINY_NONE, PRIM_BUMP_NONE ]
[ PRIM_FULLBRIGHT ] [ FALSE ]
[ PRIM_TEXGEN ] [ PRIM_TEXGEN_DEFAULT ]
  • If map is missing from the prim's inventory and it is not a UUID or it is not a texture then an error is shouted on DEBUG_CHANNEL.
  • If map is a UUID then there are no new asset permissions consequences for the object.
    • The resulting object develops no new usage restrictions that might have occurred if the asset had been placed in the prims inventory.
  • If texture is missing from the prim's inventory and it is not a UUID or it is not a texture then an error is shouted on DEBUG_CHANNEL.
  • If texture is a UUID then there are no new asset permissions consequences for the object.
    • The resulting object develops no new usage restrictions that might have occurred if the asset had been placed in the prims inventory.