Unity RTS Engine

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

NPC Task Manager

The NPC Task Manager is responsible for managing faction resources.

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

This component allows to create multiple queues where tasks can be submitted to this queues. Following settings on the inspector, the tasks will move from one queue to another until they reach the first queue (ID = 0) where they will be forced to be executed by the NPC faction.

Currently this component supports only ‘Building Construction’ as a task that can be added to the queues. When a ‘Building Construction’ task is in the first queue (ID = 0), units will be forced to construct it (even if they have been doing another activity, other than constructing buildings). This is however only temporary as more task types will be added in future updates.

  1. Queues Amount: The amount of queues to create.
  2. Clock Length (in seconds): Define the length of one clock.
  3. Promotion Clock Amount: The amount of clocks that need to be registered so that a queue will move from queue n to queue n-1 (till they reach queue 0).

How can we help?