🧠Essential concepts
Perception
A perception is an element of what the NPC perceives of the world around it.
The goal of a perception is to gather the data and store it inside the Blackboard of the NPC.
For example, in the presets there is:
The number of enemies or allies within various range (SurroundingPerception)
The number of enemies the NPC can see (LookAroundPerception)
Actively visually tracks the focused target (TrackingPerception)
You can of course create your own Perceptions to suit your own needs !
The perceptions are the eyes, the ears and the nose of the NPC.
Blackboard
The blackboard is the memory of the NPC. This is where you will store any values that should be shared between the Perceptions, Planner and Behaviors of your NPC.
Planner
A planner is the brain of the NPC, it's goal is to take decisions based on the data gathered of the perceptions or the messages received from it's Squad/Territory. The planner is responsible to decide wich behavior to currently execute via the Plan function.
The Plan function is executed at minimum every RefreshRate, but is also executed everytime a Behavior calls the Interrupt function or when a Blackboard value changes and you decide this changes necessitates the NPC to reconsider his current plan.
It is the most crucial part of your NPC, while you can create custom Perceptions or Behaviors you will most likely need to create your own Planner of you wish to create a custom NPC to suit your needs.
Behavior

A behavior is the action the NPC is performing at the moment.
For example, during the Detection behavior, the NPC will try to see an enemy, and progressivly raise it's doubts. When he is suspcious enough, the Behavior will call the Interrupt
function.
This will then trigger a Plan inside the planner, and the NPC will likely go into the Push or Engage behavior, wile alerting it's ennemies.
NPC
Territory
TODO
A territory is the zone a group of NPC or players controls. Every NPC must be assigned a Territory, wether they are allied or enemies to the NPCs that controls it. Territory can either be in a fixed position and spawned right as the server starts, or be spawned when you want and assigned NPCs later.
Territories, like NPCs must be assigned a Team . Everyone in that team will be an ally, everyone else an enemy in the point of view of the territory.
When spawned, territories will find all the cover points in their range and store them for the NPCs to search.
Last updated