A quick way to do that would be to use a trigger:
TriggerRadius:
Covering all the units involvedCondition: Anybody (repeatedly)
Condition:
pacifyOnActivation Field: "_x setcombatmode ""blue""" foreach thislist
OnDeactivation Field: "_x setcombatmode ""yellow""" foreach thislist
Then if you have your variable (I've used
pacify here), set that to true and everyone will stop firing. Set it back to false again to start the battle