Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

detecting avatar teleporting

Icey Fluffball
Registered User
Join date: 18 Oct 2005
Posts: 5
05-12-2006 00:53
i have an attachment that has an active script in it. some sims get kinda mad when it is running and i dont always remember it is. what i am hoping for is a short script that will let the script do a link message when ever the avatar it is attached to either teleports into another sim or logs into second life.

i know there are objects out there that do this and i have tried to ask those i know who have done it but they are trying to keep it a secret. any help would be GREATLY appreciated. i have looked into several places in the wiki and the forums (when they work) but most of the time i come up with nothing.

again any help is appreciated
thanks in avdance

~Icey Fluffball
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
05-12-2006 02:07
The changed() event triggers when something teleports, so you can pick that up with
CODE

changed(integer change)
{
if (change & CHANGED_TELEPORT) {
do_stuff();
}
}

I think that on_rez() triggers when you have an attachment still attached when you log in.
Icey Fluffball
Registered User
Join date: 18 Oct 2005
Posts: 5
05-12-2006 11:35
ok sweet thankies ^^ works great

~Icey Fluffball