The gui/teleport script uses the Units::teleport(df::unit *, df::coord) function to move units, and it appears to be capable of teleporting caravan wagons. However, it does not have the necessary logic to adjust occupancy flags for EQUIPMENT creatures, which means it will leave the map's occupancy flags in an inconsistent state afterwards.
DF's own functions unitst::do_largeocc() and unitst::undo_largeocc() are responsible for handling this.
The
gui/teleportscript uses theUnits::teleport(df::unit *, df::coord)function to move units, and it appears to be capable of teleporting caravan wagons. However, it does not have the necessary logic to adjust occupancy flags for EQUIPMENT creatures, which means it will leave the map's occupancy flags in an inconsistent state afterwards.DF's own functions
unitst::do_largeocc()andunitst::undo_largeocc()are responsible for handling this.