All pastes #718305 Raw Edit

Mine

public text v1 · immutable
#718305 ·published 2007-09-28 09:02 UTC
rendered paste body

            teleportMessage = null;

            MainAvatar.TeleportCallback cb = new MainAvatar.TeleportCallback(tcb);
            client.Self.OnTeleport += cb;
            
            client.Self.Teleport(regionHandle,(new LLVector3(localX, localY, localZ)));
            for (int i = 0; i < 60; i++)
            {
                Thread.Sleep(500);
                if (teleportMessage != null)
                {
                    client.Self.OnTeleport -= cb;
                    return "<r r=\"ok\" />";
                    //return "<r r=\"ok\" m=\"" + teleportMessage + "\" n=\""+simName+"\"/>";
                }
            }
            client.Self.OnTeleport -= cb;



2007/09/28 17:54:13, INFO, Teleport to Region Handle: 3298534884096 , (142.3828,138.2383,1)
2007/09/28 17:54:13, INFO, teleport callback msg: Teleport started
2007/09/28 17:54:13, INFO, teleport callback msg: resolving
2007/09/28 17:54:14, INFO, teleport callback msg: no_host