Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I need a Favour. Teleporters for my Shop.

Eos Zander
Registered User
Join date: 22 May 2004
Posts: 135
10-14-2004 20:23
I am good at SOME things but making teleporters to go from one floor to another in my three storey shop is NOT one of my fortes. I could really use some help on this if any one has the knowledge and a bit of time. :)
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-14-2004 21:27
CODE
vector global_target //=<some vector>;

update()
{
llSitTarget((global_target - llGetPos())/llGetRot, <0,0,0,1>/llGetRot());
}

default
{
state_entry()
{
llSetSitText("Teleport");
update();
}
on_rez(integer a)
{
update();
}
changed(integer a)
{
key b=llAvatarOnSitTarget();
if(b!=NULL_KEY)
{
llUnSit(b);
update();
}
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-14-2004 21:28
CODE
vector global_target //=<some vector>;

update()
{
llSitTarget((global_target - llGetPos())/llGetRot, <0,0,0,1>/llGetRot());
}

default
{
state_entry()
{
llSetSitText("Teleport");
update();
}
on_rez(integer a)
{
update();
}
changed(integer a)
{
key b=llAvatarOnSitTarget();
if(b!=NULL_KEY)
{
llUnSit(b);
update();
}
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey