void Enter() { WorldLocation loc = new WorldLocation(_siteLevel.MapID); loc.Relocate(_owner); _owner.TeleportTo(loc, TeleportToOptions.Seamless); }
void Leave() { MapRecord map = CliDB.MapStorage.LookupByKey(_siteLevel.MapID); if (map != null) { WorldLocation loc = new WorldLocation((uint)map.ParentMapID); loc.Relocate(_owner); _owner.TeleportTo(loc, TeleportToOptions.Seamless); } }