Difference between revisions of "LlCreateLink"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/permission|PERMISSION_CHANGE_LINKS|grant=the owner}}{{LSL_Function
|func_id=141|func_sleep=1.0|func_energy=10.0
|func_id=141|func_sleep=1.0|func_energy=10.0
|func=llCreateLink|sort=CreateLink
|func=llCreateLink|sort=CreateLink
|p1_type=key|p1_name=target
|p1_type=key|p1_name=target
|p2_type=integer|p2_name=parent
|p2_type=integer|p2_name=parent
|permission=PERMISSION_CHANGE_LINKS
|func_desc=Attempt to link task script is attached to and target. If '''parent''' == {{LSLG|TRUE}}, task script is attached to is the root
|func_desc=Attempt to link task script is attached to and target. If '''parent''' == {{LSLG|TRUE}}, task script is attached to is the root
|return_text
|return_text

Revision as of 19:28, 16 April 2007

Summary

Function: llCreateLink( key target, integer parent );
1.0 Forced Delay
10.0 Energy

Attempt to link task script is attached to and target. If parent == TRUE, task script is attached to is the root

• key target
• integer parent

To run this function the script must request the PERMISSION_CHANGE_LINKS permission with llRequestPermissions and it must be granted by the owner.

Caveats

  • This function causes the script to sleep for 1.0 seconds.
Permissions

Examples

See Also

Events

•  run_time_permissions Permission receiving event

Functions

•  llGetPermissions Get the permissions granted
•  llGetPermissionsKey Get the agent who granted permissions
•  llRequestPermissions Request permissions
•  llBreakLink Break a link
•  llBreakAllLinks Break all links

Articles

•  Script permissions

Deep Notes

Signature

function void llCreateLink( key target, integer parent );