btech.map
btech.map provides maps, geometry, line of sight, placement, and messaging.
Functions
| Function | Description |
|---|---|
blast_zones | Lists the blast zones configured on a map. |
cargo_transfer_point | Returns a map’s cargo-transfer point. |
elevation | Returns the elevation of a map hex. |
emit | Emits a message to units on a map. |
in_blast_zone | Tests whether a map hex lies in a configured blast zone. |
line_of_sight | Tests line of sight from a unit to another unit or hex. |
link | Returns a child map’s parent-link configuration. |
load | Loads map data from a named map file. |
place_unit | Places a live unit at a position on a map. |
range | Calculates the distance between two units or positions on a map. |
set_cargo_transfer_point | Sets or clears a map’s cargo-transfer point. |
set_link | Sets or clears a child map’s parent-link configuration. |
terrain | Returns the terrain type of a map hex. |
unit_by_id | Finds a unit by its tactical ID. |
units | Lists the live units on a map. |
update_links | Recursively updates a map and its linked child maps. |