section_condition

Returns a live unit section’s current condition.

Function

Synopsis

btech.unit.section_condition( unit, section )

Arguments

DbRef|Object unit
The live unit.
BtechSection section
A typed constant from btech.unit.sections that is valid for the unit.

Returns

"operational"|"destroyed"|"flooded" condition
"operational", "destroyed", or "flooded".

See Also