Unity RTS Engine

  1. Home
  2. Unity RTS Engine
  3. NPC Factions
  4. NPC Attack Manager

NPC Attack Manager

The NPC Attack Manager is responsible for the faction’s offensive behavior.

When creating a new NPC Manager object using the RTS Engine menu. The NPC Attack Manager is a component of the new NPC Manager’s ‘NPCArmyManagers’ child object.


  1. Can Attack: Enable to allow the NPC faction to attack other factions.
  2. Pick Weakest Faction: Faction will attempt to pick the weakest faction when picking a target faction.
  3. Set Target Faction Delay (in seconds): Delay time before the faction picks a target faction to attack.
  4. Launch Attack Reload Range (in seconds): When the NPC faction has target, this field defines how often this component checks whether it can launch an attack or not.
  5. Launch Attack Power Range: Minimum attack power that the NPC faction need to have to launch an attack (the faction’s attack power is a sum of the attack powers assigned in the Attack components of the faction units).
  6. Attack Order Reload Range (in seconds): When the NPC faction is carrying an attack, this field defines how often will this component give orders (on which buildings and units in the target faction’s territory to attack) to the units doing the attack.
  7. Target Buildings: When the NPC faction is carrying an attack on another faction, it will mainly target the building types defined in this array.
  8. Surrender Attack Power Range: When the NPC faction is carrying an attack and the its attack power hits the value defined in this field, it will retreat.

How can we help?