IMO when making a fire command and if the game *knows* that some unit cannot use a weapon in its current state (buttoned/unbuttoned/shreck inside a building), the UI should somehow show it. Maybe show the firing line with some warning colour (like red or orange) or something? There were some similar cases in CMSF and it took me quite a while to find out.