Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

CHANGED_REGION and CHANGED_TELEPORT

Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
03-12-2006 10:47
It looks like CHANGED_REGION and CHANGED_TELEPORT doesn't work yet. Weren't they supposed to be enabled by now? on_rez on teleport has been disabled, so it would be nice if there was a working replacement before release on wednesday.

edit:
It looks like the changed event doesn't work at all if it's not in the rootprim of a linked set. I hadn't noticed that before.
Nathan Stewart
Registered User
Join date: 2 Feb 2005
Posts: 1,039
03-12-2006 11:19
Seems to be working here, try this test script i wrote

CODE

default
{
changed(integer change)
{
if (change & CHANGED_REGION)
{
llSay(0, "Changed Region");
}

if (change & CHANGED_TELEPORT)
{
llSay(0, "Teleported");
}
}
}
_____________________
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
03-12-2006 11:41
oops, my script was in a while(true) loop, no wonder wonder the event didn't work :p

CHANGED_REGION still doesn't work for vehicles though. Only attachments.
Nathan Stewart
Registered User
Join date: 2 Feb 2005
Posts: 1,039
03-12-2006 11:54
From: Zepp Zaftig
oops, my script was in a while(true) loop, no wonder wonder the event didn't work :p

CHANGED_REGION still doesn't work for vehicles though. Only attachments.


I guess if needed for vehicles you could put the code in a hud attachment etc
_____________________
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
03-12-2006 11:59
moved text to top post