btech.map

btech.map provides maps, geometry, line of sight, placement, and messaging.

Functions

FunctionDescription
blast_zonesLists the blast zones configured on a map.
cargo_transfer_pointReturns a map’s cargo-transfer point.
elevationReturns the elevation of a map hex.
emitEmits a message to units on a map.
in_blast_zoneTests whether a map hex lies in a configured blast zone.
line_of_sightTests line of sight from a unit to another unit or hex.
linkReturns a child map’s parent-link configuration.
loadLoads map data from a named map file.
place_unitPlaces a live unit at a position on a map.
rangeCalculates the distance between two units or positions on a map.
set_cargo_transfer_pointSets or clears a map’s cargo-transfer point.
set_linkSets or clears a child map’s parent-link configuration.
terrainReturns the terrain type of a map hex.
unit_by_idFinds a unit by its tactical ID.
unitsLists the live units on a map.
update_linksRecursively updates a map and its linked child maps.