Unity RTS Engine

  1. Home
  2. Unity RTS Engine
  3. NPC Factions
  4. NPC Army Creator

NPC Army Creator

The NPC Army Creator is responsible for the creation of army units.

When creating a new NPC Manager object using the RTS Engine menu. The NPC Army Creator is a component of the new NPC Manager’s “NPCArmyManagers” child object.

  1. Army Units: Drag and drop the unit prefabs with an Attack component that you want the NPC faction to use to attack other faction or defend its own territory. If the NPC Manager that this component belongs to is supposed to be used for different NPC types or different faction types then you can have units that play for those different types in this list because they will be filtered once this component is initialized (meaning only the units that fit the faction type and NPC type will be activated and used by the NPC faction). Make sure that units in this list have their regulator data correctly defined.
  2. Force Army Creation: When this field is enabled, this component will increment the value of the minimum amounts of the active instances of the army units regulators until it hits the maximum defined amounts. This will make the NPC faction prioritize the creation of army units.
  3. Force Creation Reload Range (in seconds): How often will this component execute the above behavior (if it is enabled).

How can we help?