# Force Companion to Attack

You can set the target of your companions very easily by calling the "`OnSlaveMasterNewTarget`" dispatcher.

<figure><img src="https://1740300672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUQeXeV7FmOzkOjebs98Y%2Fuploads%2FcDtAPL900BfbWTa2Ea8L%2Fimage.png?alt=media&#x26;token=15eaf8de-f6cc-4832-80a2-0aef1b614090" alt=""><figcaption><p>The dispatcher for OnSlaveMasterNewTarget</p></figcaption></figure>

If you want to do it in a [Skill Module](../../skill-system/skill-module), you could do it with a skill that has "`requiresTarget`" enabled, this means you have to select a Target to execute the skill, then the "`Target`" variable inside the skillmodule can be used to set it as the new target for all your companions.&#x20;

<figure><img src="https://1740300672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUQeXeV7FmOzkOjebs98Y%2Fuploads%2F6pp4ZrmrzIdFSAFWwEAi%2Fimage.png?alt=media&#x26;token=4124239c-040d-473f-b07a-029eb6c8e00f" alt=""><figcaption><p>The Skill Module for OnSlaveNewTarget</p></figcaption></figure>

