Files
CHOMPStation2/code/game/mecha/mecha_helpers.dm
Atermonera 528ba717b6 Merge pull request #6765 from Mechoid/BrainmechTargFix
Brainmechs can use guns again.
2020-02-29 18:04:37 -05: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