Second Life
vector target=<64,123,46>; vector offset; default { on_rez(integer params) { offset = (target- llGetPos()) * (ZERO_ROTATION / llGetRot()); llSitTarget(offset, ZERO_ROTATION); } touch_start(integer total_number) { offset = (target- llGetPos()) * (ZERO_ROTATION / llGetRot()); llSitTarget(offset, ZERO_ROTATION); } state_entry() { offset = (target- llGetPos()) * (ZERO_ROTATION / llGetRot()); llSetSitText("Teleport"); llSitTarget(offset, ZERO_ROTATION); } changed(integer change) { if (change & CHANGED_LINK) { llSleep(0.5); if (llAvatarOnSitTarget() != NULL_KEY) { llUnSit(llAvatarOnSitTarget()); } } } }
OpenSim
vector target=<157,84,111>; vector offset; default { on_rez(integer params) { offset = target- llGetPos(); llSitTarget(offset, ZERO_ROTATION); } touch_start(integer total_number) { offset = target- llGetPos(); llSitTarget(offset, ZERO_ROTATION); } state_entry() { offset = target- llGetPos(); llSetSitText("Teleport"); llSitTarget(offset, ZERO_ROTATION); } changed(integer change) { if (change & CHANGED_LINK) { llSleep(0.5); if (llAvatarOnSitTarget() != NULL_KEY) { llUnSit(llAvatarOnSitTarget()); } } } }
Counter: 2565,
today: 1,
yesterday: 0
最終更新: 2011-09-28 (水) 13:35:53 (JST) (4754d) by iseki