查看“LlDetachFromAvatar”的源代码
←
LlDetachFromAvatar
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: llDetachFromAvatar( ); |参数= 参数:无 |返回值= 返回值:无 |注意事项=Permissions *Do not depend upon the auto-grant status of permissions. Always use the run_time_permissions event. *If the script lacks the permission PERMISSION_ATTACH, the script will shout an error on DEBUG_CHANNEL and the operation fails (but the script continues to run). *If PERMISSION_ATTACH is granted by anyone other than the owner, then when the function is called an error will be shouted on DEBUG_CHANNEL. *Once the PERMISSION_ATTACH permission is granted there is no way to revoke it except from inside the script (for example, with a new llRequestPermissions call) or the script is reset or deleted. *Only works in the root prim of the attachment; calling it from a script in a child prim will cause it to fail silently. *If the attachment was attached using llAttachToAvatarTemp, the attach() event will not be called because the object will be destroyed before the event gets processed. |示例= <pre> default { attach(key AvatarKey) {//give instructions for use and prevent item from being attached to avatar if(AvatarKey) {//event is called on both attach and detatch, but Key is only valid on attach llOwnerSay (" We hope you will enjoy your purchase, but if you really want to use this item properly, you should: 1) drag it from your inventory to the ground 2) Right click on it and select \"open\" 3) copy its contents to inventory."); llRequestPermissions(AvatarKey, PERMISSION_ATTACH ); } } run_time_permissions(integer perm) { if(perm & PERMISSION_ATTACH) { llDetachFromAvatar( ); } } } </pre> |相关函数= [[llGetPermissions]]–Get the permissions granted [[llGetPermissionsKey]]–Get the agent who granted permissions [[llRequestPermissions]]–Request permissions [[llAttachToAvatar]] [[llGetAttached]] |相关事件= [[run_time_permissions]]–Permission receiving event [[attach]] }}
该页面使用的模板:
模板:LSL Header
(
查看源代码
)
模板:LSLC
(
查看源代码
)
模板:LSLGC
(
查看源代码
)
模板:Multi-lang
(
查看源代码
)
模板:函数详情
(
查看源代码
)
返回至
LlDetachFromAvatar
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
网站首页
知识百科
编辑帮助
最近更改
工具
链入页面
相关更改
特殊页面
页面信息