# Custom Faction

{% tabs %}
{% tab title="Instruction" %}
This is how you use custom factions on a `Spawn AI` module. \
Put this code in the init field of the Spawn AI module:

> **Arguments:**
>
> `Faction Name` = Faction Classname

<pre class="language-sqf"><code class="lang-sqf"><strong>this setVariable ["faction", "Faction Name"];
</strong></code></pre>

{% endtab %}
{% endtabs %}
