Behaviors

AI Behaviors defines the way an NPC moves & fight.

Generic Fields

Field NameFunction
NameName of the asset data in the project and editor.

Phase Settings

Field NameFunction
Check IntervalHow often template checks for phase.

Target Settings

Field NameFunction
Min. Target DistanceMinimum distance from which NPC will aggro player.
Max. Target DistanceMaximum distance from which NPC will aggro player.
Look at target speedSpeed at which the NPC will look (turn) toward the target.
Target check intervalInterval in seconds at which the NPC will check/look for a target.

Reset Target

Field NameFunction
If too far from spawner?Should NPC reset target if too far away from the NPC Spawner?
Spawner Distance MaxMax distance from the spawner before NPC resets.
If too far from spawn point?Should NPC reset target if too far away from the spawn point?
Spawn Point Distance MaxMax distance from the spawn point before NPC resets.

Animator Settings

Field NameFunction
Strafe ParameterCalls parameter from animator to trigger animation from parameter slot defined in this field.
Combat ParameterCalls parameter from animator to trigger animation from parameter slot defined in this field.

Aggro Settings

Field NameFunction
Can Aggro Allies?If on, NPC with this behavior can aggro allies. Based on faction stance.
Can Aggro Neutral?If on, NPC with this behavior can aggro neutrals. Based on faction stance.
Can Aggro Enemy?If on, NPC with this behavior can aggro enemies. Based on faction stance.

You can create new AI State Templates by right clicking in your asset browser or going to Assets in the top bar > Create > Blink > AI > Template.

These templates are what can be editted.

A state is always accompanied by its template version

For Example. If the state is set defined as AI State Roaming then for the template field use AI State Roaming Template.

Or if the state is AI State Patrol then for the template field use AI State Patrol Template

Default State

Field NameFunction
StateThe default state for NPCs with this behavior. For example roaming, idle or patrol etc.
TemplateThe template for the default state .
Pet StateThe default state for the pet (AI State Pet Follow Owner)
Pet TemplateThe template for the pet's default state (AI State Pet Follow Owner Template)

Chase State

Field NameFunction
StateThe chase state for NPCs with this behavior (AI State Chase)
TemplateThe template for the chase state (AI State Chase Template)

Combat Idle State

Field NameFunction
StateThe combat idle state for NPCs with this behavior (AI State Circle Target)
TemplateThe template for the combat idle state (AI State Circle Target Template)

Combat State

Field NameFunction
StateThe combat state for NPCs with this behavior (AI State Combat)
TemplateThe template for the combat state (AI State Combat Template)

Walk Backward State

Field NameFunction
StateThe walk backward state for NPCs with hits behaviors (AI State Walk Backward)
TemplateThe template for the walk backward state (AI State Walk Backward Template)

Flee State

Field NameFunction
StateThe flee state for NPCs with this behavior (AI State Flee)
TemplateThe template for the flee state (AI State Flee Template)
Requirements TemplateIn this field you can define a requirement template. You can create requirement templates under Templates > Requirements.
Flee check intervalHow often the NPC with this behavior checks (in seconds) if it should flee, based on the requirements template.

For example. The requirement template is setup like this,

Type: Stat || Rule: Mandatory || Entity: Caster || Stat: Health || Value Type: Equal or Below || Percent: Enabled || Amount: 25

This means that if this requirement template is defined in the "Requirements Template" field, the NPC will initiate the "Flee State" based on the "Flee State Template" once it's hp drops below 25%.

It will check every x seconds based on the value in the "Flee Check Interval" field if these requirements are met. If they are met then the NPC will Flee.

Learn more about Requirement Templates here

Potential Abilities

You can add multiple Phase Ability Templates by clicking the "+" icon next to "Potential Abilities" however only 1 Phase Ability Template will be chosen at random.

Learn more about Phase Abilties here

Field NameFunction
Ability TemplateA Phase Ability template is defined in this field. This template holds the abilties the NPC can use.
ChanceChance of this Phase Ability Template being on the NPC.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard