I created the (canonical) Sit/UnSit script to teleport people. However, after the teleport the Avatar still sitting, and I have to click the Stand Up.
I never see any of the llSay texts. It's almost as the Changed event is not firing...
The prim the avatar sits on is a door mat.
Suggestions would be most appreciated.
Will
default
{
state_entry()
{
llSetSitText("Enter"
;vector target=<233, 22, 24>;
rotation my_rot=llGetRot();
llSitTarget((target - llGetPos()) / my_rot, ZERO_ROTATION / my_rot);
}
changed(integer change)
{
if (change & CHANGED_LINK)
{
key avKey = llAvatarOnSitTarget();
if (avKey != NULL_KEY)
{
llSleep(1);
llUnSit(avKey);
llSay(0,"Unsitting"
;}
else
{
llSay(0,"NULL_KEY"
;}
}
else
{
llSay(0, "No changed_link"
;}
}
}