Last active
October 23, 2018 22:57
-
-
Save masterpoppy/f6e92c2c4c72461f116a50ba01cf90d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ********************************* | |
// auto temp attach(attachment).lsl | |
// ********************************* | |
integer attach_point; | |
default | |
{ | |
on_rez(integer start_param) | |
{ | |
llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_TEMP_ON_REZ, TRUE]); | |
attach_point = start_param; | |
if(attach_point){ | |
llRequestPermissions( | |
(key)((string)llGetObjectDetails( | |
(key)((string)llGetObjectDetails(llGetKey(), [OBJECT_REZZER_KEY])), | |
[OBJECT_DESC] | |
)), | |
PERMISSION_ATTACH | |
); | |
} | |
} | |
run_time_permissions(integer perm) | |
{ | |
if(perm & PERMISSION_ATTACH){ | |
llAttachToAvatarTemp(attach_point); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ********************************* | |
// auto temp attach(rezzer-box).lsl | |
// ********************************* | |
integer attach_point = ATTACH_BACK; | |
// attach_point 一覧 | |
// ATTACH_CHEST | |
// ATTACH_HEAD | |
// ATTACH_LSHOULDER | |
// ATTACH_RSHOULDER | |
// ATTACH_LHAND | |
// ATTACH_RHAND | |
// ATTACH_LFOOT | |
// ATTACH_RFOOT | |
// ATTACH_BACK | |
// ATTACH_PELVIS | |
// ATTACH_MOUTH | |
// ATTACH_CHIN | |
// ATTACH_LEAR | |
// ATTACH_REAR | |
// ATTACH_LEYE | |
// ATTACH_REYE | |
// ATTACH_NOSE | |
// ATTACH_RUARM | |
// ATTACH_RLARM | |
// ATTACH_LUARM | |
// ATTACH_LLARM | |
// ATTACH_RHIP | |
// ATTACH_RULEG | |
// ATTACH_RLLEG | |
// ATTACH_LHIP | |
// ATTACH_LULEG | |
// ATTACH_LLLEG | |
// ATTACH_BELLY | |
// ATTACH_LEFT_PEC | |
// ATTACH_RIGHT_PEC | |
// ATTACH_HUD_CENTER_2 | |
// ATTACH_HUD_TOP_RIGHT | |
// ATTACH_HUD_TOP_CENTER | |
// ATTACH_HUD_TOP_LEFT | |
// ATTACH_HUD_CENTER_1 | |
// ATTACH_HUD_BOTTOM_LEFT | |
// ATTACH_HUD_BOTTOM | |
// ATTACH_HUD_BOTTOM_RIGHT | |
default | |
{ | |
touch_end(integer index) | |
{ | |
string obj = llGetInventoryName(INVENTORY_OBJECT, 0); | |
if(obj){ | |
llSetObjectDesc((string)llDetectedKey(0)); | |
llRezObject(obj, llGetPos(), ZERO_VECTOR, llGetRot(), attach_point); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment