How do you change a unit's engagement mode?

You can adjust the units engagement mode by using the setCombatMode command. This identifies how the unit reacts to enemies, the value should be one of these:
  • "Blue" (Never fire)
  • "Green" (Hold fire - defend only)
  • "White" (Hold fire, engage at will)
  • "Yellow" (Fire at will)
  • "Red" (Fire at will, engage at will)

unit_name setcombatmode "value"