dean groom's Library tagged → View Popular
How to create a teleport link in Second Life — Curriculum, Technology, and Education Reform, University of Illinois at Urbana-Champaign
"vector target=<162,134,27>; // Enter the target coordinates here!!!
default
{
state_entry()
{
llSetText("Teleport to ENTER NAME OF DESTINATION",<255,255,255>,5);
llSetSitText("Teleport");
rotation my_rot=llGetRot();
llSitTarget((target - llGetPos()) / my_rot,ZERO_ROTATION / my_rot);
}
changed(integer change)
{
llUnSit(llAvatarOnSitTarget());
}
} "
llStartAnimation - Second Life Wiki
* s imposed; in 1.25.4, that limit was (will be) raised to 30.
Search JIRA for related Bugs
Examples
default
{
touch_start(integer detected)
{
llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
llStartAnimation("sit");
llOwnerSay("animation will end in 5 seconds");
llSetTimerEvent(5.0);
}
}
timer()
{
llSetTimerEvent(0.0);
llStopAnimation("sit");
}
}
Add an animation or pose inside the same object as this script:
string animation; // the first animation in inventory will automatically be used
Linden Scripting Language Generator
- A great resource for anyone needed to create simple interactive objects in Second Life instantly using a javascript engine - deangroom on 2008-04-22
Selected Tags
Related Tags
Top Contributors
Groups interested in script
-
Java and Java script Programind
Codes and techniques of pro...
Items: 4 | Visits: 113
Created by: stefan stoichev
-
script resources
list of resources to find s...
Items: 30 | Visits: 98
Created by: Jody Reppert
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
