Thank you much!! =-]
teleport()
{
//Teleport 5 meters through the wall onto the other side. Sleep/unsit.
llSitTarget(<5, 0, 0>, ZERO_ROTATION);
llSleep(0.15);
llUnSit(llAvatarOnSitTarget());
}
init()
{
//Initialize the prim settings
llSetSitText("Teleport"
;llSetText("", <1,1,1>, 1);
}
default
{
state_entry()
{
init();
llWhisper(0, "Teleporter Initialized."
;}
touch_start(integer total_number)
{
integer i;
//Cycle through all "touchers" in case there is more than one.
for ( i = 0 ; i < total_number ; ++i )
{
//Check group membership before executing the TP
if (llDetectedGroup(i) && ! llSameGroup(NULL_KEY))
{
llSay(0, "Passed"
;teleport();
}
else
{
// if not, tell them to activate their tag if they SHOULD have access...
llSay(0, "Group members only, sorry."
;llSay(0, "If you are a group member, please \"wear your tags\" by making the group active.."
;llUnSit(llAvatarOnSitTarget());
llUnSit(llAvatarOnSitTarget());
}
}
}
}