unit_by_id

Finds a unit by its tactical ID.

Function

Synopsis

btech.map.unit_by_id( origin, id )

Arguments

DbRef|Object origin
A BattleTech map or a unit on the map.
string id
An exact two-character ASCII tactical ID.

Returns

Object|nil unit
The matching unit, or nil when none exists.

See Also