Difference between revisions of "User:Strife Onizuka/Sandbox/Switch/Template:Test"
< User:Strife Onizuka | Sandbox | Switch
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{LSL Header}} __NOTOC__ {{#vardefine:func_id|{{{func_id|}}}}}{{#vardefine:p1_name|landmark}}{{#vardefine:p1_type|key}}{{#vardefine:p1_desc|The UUID of a pre-existing landmark}} | {{LSL Header}} __NOTOC__ {{#vardefine:func_id|{{{func_id|}}}}} | ||
{{#vardefine:p1_name|landmark}} | |||
{{#vardefine:p1_type|key}} | |||
{{#vardefine:p1_desc|The UUID of a pre-existing landmark}} | |||
{{#vardefine:return_type|{{#var:return_type}}{{{return_type|}}} }} | |||
{{#vardefine:return_text|{{#var:return_text}}{{{return_text|}}} }} | |||
{{#vardefine:name|llTriggerLandmark}} | |||
{{#vardefine:constants|{{#var:constants}}{{{constants|}}}}} | |||
{{#vardefine:spec|{{{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}}I'm sure I'm not the only one who already has tons of landmarks, though there are a select number of which I use quite often. I have efforted to create a HUD which will povide easy access to commonly-used landmarks, but there is no function in LSL to access them.}} | |||
{{#vardefine:mode|{{#var:mode}}request}} | |||
{{#vardefine:self|{{#var:self}}{{{self|}}}}} | |||
{{#vardefine:type|function}} | |||
{{#vardefine:template}} | |||
{{#vardefine:caveats|{{#ifexpr:5.0> 0.0|*This function causes the script to sleep for 5.0 seconds.}}{{#if:{{#var:caveats}}|{{#var:caveats}}}}* Function is automatic if teleporting to a landmark already contained within the user's inventory | |||
* Provides standard Landmark Dialog if landmark does not exist within the user's inventory | * Provides standard Landmark Dialog if landmark does not exist within the user's inventory | ||
This function might also require a specific permission to be set in order to function (to help prevent abuse).}}{{#vardefine:location|{{#var:location}}{{{location|}}}}}{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#if:{{{sort|}}}|{{{sort}}}|{{#ifeq:{{#sub:{{#var:name}}|0|2}}|ll|{{#sub:{{#var:name}}|2}}|{{#var:name}}}}}}}}}}{{#vardefine:return_end|<nowiki>;</nowiki>}}{{#vardefine:header_footnote|{{{func_footnote|}}}{{{func_footer|}}}}}{{#vardefine:header_desc|Allows a script to trigger the activation of a specific landmark, as identified by it's UUID, and teleport an avatar/user to the defined destination.}}{{#ifeq:{{#var:mode}}|god|{{{{#ifeq:{{#var:mode}}|god|LSL_Generic/god|!}}}} }}{{#ifeq:{{#var:mode}}|request|{{{{#ifeq:{{#var:mode}}|request|LSL_Generic/request|!}}}} }}{{#if:{{{deprecated|}}}{{{depreciated|}}}|{{{{#if:{{{deprecated|}}}{{{depreciated|}}}|LSL_Generic/deprecated|!}}|{{{deprecated|}}}{{{depreciated|}}}|}}}}{{#if:{{{inventory|}}}|{{{{#if:{{{inventory|}}}|LSL_Function/inventory|!}}|{{{inventory|}}}|}}}}{{#if:{{{permission|}}}|{{{{#if:{{{permission|}}}|LSL_Function/permission|!}}|{{{permission|}}}|}}}}{{#if:{{{negative_index|}}}|{{{{#if:{{{negative_index|}}}|LSL_Function/negative_index|!}}|{{{negative_index|}}}|}}}}{{#if:{{#var:func_id}}{{#var:mode}}|| | This function might also require a specific permission to be set in order to function (to help prevent abuse).}} | ||
{{#vardefine:location|{{#var:location}}{{{location|}}}}} | |||
{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#if:{{{sort|}}}|{{{sort}}}|{{#ifeq:{{#sub:{{#var:name}}|0|2}}|ll|{{#sub:{{#var:name}}|2}}|{{#var:name}}}}}}}}}} | |||
{{#vardefine:return_end|<nowiki>;</nowiki>}} | |||
{{#vardefine:header_footnote|{{{func_footnote|}}}{{{func_footer|}}}}} | |||
{{#vardefine:header_desc|Allows a script to trigger the activation of a specific landmark, as identified by it's UUID, and teleport an avatar/user to the defined destination.}} | |||
{{#ifeq:{{#var:mode}}|god|{{{{#ifeq:{{#var:mode}}|god|LSL_Generic/god|!}}}} }} | |||
{{#ifeq:{{#var:mode}}|request|{{{{#ifeq:{{#var:mode}}|request|LSL_Generic/request|!}}}} }} | |||
{{#if:{{{deprecated|}}}{{{depreciated|}}}|{{{{#if:{{{deprecated|}}}{{{depreciated|}}}|LSL_Generic/deprecated|!}}|{{{deprecated|}}}{{{depreciated|}}}|}}}} | |||
{{#if:{{{inventory|}}}|{{{{#if:{{{inventory|}}}|LSL_Function/inventory|!}}|{{{inventory|}}}|}}}} | |||
{{#if:{{{permission|}}}|{{{{#if:{{{permission|}}}|LSL_Function/permission|!}}|{{{permission|}}}|}}}} | |||
{{#if:{{{negative_index|}}}|{{{{#if:{{{negative_index|}}}|LSL_Function/negative_index|!}}|{{{negative_index|}}}|}}}} | |||
{{#if:{{#var:func_id}}{{#var:mode}}|| | |||
<div id="box" style="background:red;"> | <div id="box" style="background:red;"> | ||
'''Don't delete the 'func_id'''' | '''Don't delete the 'func_id'''' |
Revision as of 15:11, 20 February 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
{request}
Function: llTriggerLandmark( key landmark );
Function: llTriggerLandmark( key landmark );Function ID | |
5.0 | Delay |
100.0 | Energy |
Allows a script to trigger the activation of a specific landmark, as identified by it's UUID, and teleport an avatar/user to the defined destination.
• key | landmark |
Caveats
- This function causes the script to sleep for 5.0 seconds.* Function is automatic if teleporting to a landmark already contained within the user's inventory
- Provides standard Landmark Dialog if landmark does not exist within the user's inventory
This function might also require a specific permission to be set in order to function (to help prevent abuse).
Examples
Notes
I'm sure I'm not the only one who already has tons of landmarks, though there are a select number of which I use quite often. I have efforted to create a HUD which will povide easy access to commonly-used landmarks, but there is no function in LSL to access them.
TriggerLandmark