Yeah, that's a solution. ^^
Other ways could be directly add combatant component to the object, or even change faction on the NPC (previous you set it as ally, then switch to enemies). It depends on what is the setup, but i suppose it can be achieved in different ways. :)