Files
Polaris/code/game/mecha/mecha_helpers.dm
2020-02-28 15:20:34 -08:00

12 lines
271 B
Plaintext

/*
* Helper file for Exosuit / Mecha code.
*/
// Returns, at least, a usable target body position, for things like guns.
/obj/mecha/proc/get_pilot_zone_sel()
if(!occupant || !occupant.zone_sel || occupant.stat)
return BP_TORSO
return occupant.zone_sel.selecting