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.
- Queues Amount: The amount of queues to create.
- Clock Length (in seconds): Define the length of one clock.
- 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).