InstanceMap
class InstanceMap()on_object_option(Assets.WorldObject.poordoor, "Enter") { subject -> val player = subject as? Actor ?: return@on_object_option val map = InstanceMap() map.copyMapSquare(destZoneX = 400, destZoneZ = 400, srcZoneX = 400, srcZoneZ = 400, width = 2, height = 2, level = 0, rotation = 0) val shard = World.createInstance(map) World.enterInstance(player, shard, Tile3(3204, 3204))}copyMapSquare
Section titled “copyMapSquare”fun copyMapSquare( destZoneX: Int, destZoneZ: Int, srcZoneX: Int, srcZoneZ: Int, width: Int, height: Int, level: Int, rotation: Int, destLevel: Int = level)copyZoneSet
Section titled “copyZoneSet”fun copyZoneSet( srcZoneX: IntRange, srcZoneZ: IntRange, level: Int, rotation: Int, destBaseZoneX: Int = srcZoneX.first, destBaseZoneZ: Int = srcZoneZ.first)