Difference between revisions of "Template:LSL Function/permission"
Jump to navigation
Jump to search
m |
|||
Line 3: | Line 3: | ||
{{{{#if:{{#var:DEBUG_CHANNEL}}||:DEBUG_CHANNEL}}|}} | {{{{#if:{{#var:DEBUG_CHANNEL}}||:DEBUG_CHANNEL}}|}} | ||
{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|<noinclude>*</noinclude>}}}|To run this function the script must request the [[{{{1}}}]] permission with [[llRequestPermissions]]{{#ifeq:{{{grant|anyone}}}|anyone|| and it must be granted by {{{grant|anyone}}}}}.}}}} | {{#vardefine:header_footnote|{{#var:header_footnote}}{{#if: {{{1|<noinclude>*</noinclude>}}}|To run this function the script must request the [[{{{1}}}]] {{#if:{{{2|}}}|or [[{{{2}}}]]}} permission with [[llRequestPermissions]]{{#ifeq:{{{grant|anyone}}}|anyone|| and it must be granted by {{{grant|anyone}}}}}.}}}} | ||
{{#vardefine:caveats|{{#var:caveats}}{{#if: {{{1|<noinclude>*</noinclude>}}}| | {{#vardefine:caveats|{{#var:caveats}}{{#if: {{{1|<noinclude>*</noinclude>}}}| | ||
* Do not depend upon the auto-grant status of permissions. '''Always''' use the [[run_time_permissions]] event. | * Do not depend upon the auto-grant status of permissions. '''Always''' use the [[run_time_permissions]] event. | ||
* If the script lacks the permission [[{{{1}}}]], the script will shout an error on {{#var:DEBUG_CHANNEL}} and the operation fails (but the script continues to run).{{#ifeq:{{{grant|anyone<noinclude>*</noinclude>}}}|anyone|| | * If the script lacks {{#if:{{{2|}}}|both the permissions [[{{{1}}}]] and [[{{{2}}}]]|the permission [[{{{1}}}]]}}, the script will shout an error on {{#var:DEBUG_CHANNEL}} and the operation fails (but the script continues to run).{{#ifeq:{{{grant|anyone<noinclude>*</noinclude>}}}|anyone|| | ||
* If [[{{{1}}}]] is granted by anyone other than {{{grant|anyone}}}, then when the function is called an error will be shouted on {{#var:DEBUG_CHANNEL}}.}}}} | * If [[{{{1}}}]] {{#if:{{{2|}}}|or [[{{{2}}}]]}} is granted by anyone other than {{{grant|anyone}}}, then when the function is called an error will be shouted on {{#var:DEBUG_CHANNEL}}.}}}} | ||
{{#switch:{{{1}}} | {{#switch:{{{1}}} | ||
|PERMISSION_TAKE_CONTROLS=* Once the [[{{{1}}}]] permission is granted, it can be revoked from inside the script (with [[llReleaseControls]] or a new [[llRequestPermissions]] call), or if the user chooses Release Keys from the viewer. Otherwise, the script will only lose the permission if it is reset or the object derezzed (deleted, detached, or taken). | |PERMISSION_TAKE_CONTROLS=* Once the [[{{{1}}}]] permission is granted, it can be revoked from inside the script (with [[llReleaseControls]] or a new [[llRequestPermissions]] call), or if the user chooses Release Keys from the viewer. Otherwise, the script will only lose the permission if it is reset or the object derezzed (deleted, detached, or taken). | ||
|PERMISSION_CONTROL_CAMERA=*The [[{{{1}}}]] permission is automatically revoked when the avatar stands up from or detaches the object, and any scripted camera parameters are automatically cleared. | |PERMISSION_CONTROL_CAMERA=*The [[{{{1}}}]] permission is automatically revoked when the avatar stands up from or detaches the object, and any scripted camera parameters are automatically cleared. | ||
|#default=* Once the [[{{{1}}}]] permission is granted there is no way to revoke it except from inside the script (for example, with a new [[llRequestPermissions]] call). The script will only lose the permission if it is reset or the object is derezzed (deleted, detached, or taken). | |#default=* Once the [[{{{1}}}]] permission is granted there is no way to revoke it except from inside the script (for example, with a new [[llRequestPermissions]] call). The script will only lose the permission if it is reset or the object is derezzed (deleted, detached, or taken). | ||
}} }} | }}{{#if:{{{2|}}}|{{#switch:{{{2}}} | ||
|PERMISSION_TAKE_CONTROLS=* Once the [[{{{2}}}]] permission is granted, it can be revoked from inside the script (with [[llReleaseControls]] or a new [[llRequestPermissions]] call), or if the user chooses Release Keys from the viewer. Otherwise, the script will only lose the permission if it is reset or the object derezzed (deleted, detached, or taken). | |||
|PERMISSION_CONTROL_CAMERA=*The [[{{{2}}}]] permission is automatically revoked when the avatar stands up from or detaches the object, and any scripted camera parameters are automatically cleared. | |||
|#default=* Once the [[{{{2}}}]] permission is granted there is no way to revoke it except from inside the script (for example, with a new [[llRequestPermissions]] call). The script will only lose the permission if it is reset or the object is derezzed (deleted, detached, or taken). | |||
}}}} }} | |||
{{#vardefine:also_events|{{#var:also_events}} | {{#vardefine:also_events|{{#var:also_events}} |
Revision as of 21:44, 25 March 2013
#var | value | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
header_footnote | To run this function the script must request the [[{{{1}}}]] permission with llRequestPermissions. | |||||||||||||||
caveats |
| |||||||||||||||
also_events |
| |||||||||||||||
also_functions |
| |||||||||||||||
also_articles |
|