Behaviors
AI Behaviors defines the way an NPC moves & fight.
Generic Fields
Field Name | Function |
---|---|
Name | Name of the asset data in the project and editor. |
Phase Settings
Field Name | Function |
---|---|
Check Interval | How often template checks for phase. |
Target Settings
Field Name | Function |
---|---|
Min. Target Distance | Minimum distance from which NPC will aggro player. |
Max. Target Distance | Maximum distance from which NPC will aggro player. |
Look at target speed | Speed at which the NPC will look (turn) toward the target. |
Target check interval | Interval in seconds at which the NPC will check/look for a target. |
Reset Target
Field Name | Function |
---|---|
If too far from spawner? | Should NPC reset target if too far away from the NPC Spawner? |
Spawner Distance Max | Max 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 Max | Max distance from the spawn point before NPC resets. |
Animator Settings
Field Name | Function |
---|---|
Strafe Parameter | Calls parameter from animator to trigger animation from parameter slot defined in this field. |
Combat Parameter | Calls parameter from animator to trigger animation from parameter slot defined in this field. |
Aggro Settings
Field Name | Function |
---|---|
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 Name | Function |
---|---|
State | The default state for NPCs with this behavior. For example roaming, idle or patrol etc. |
Template | The template for the default state . |
Pet State | The default state for the pet (AI State Pet Follow Owner) |
Pet Template | The template for the pet's default state (AI State Pet Follow Owner Template) |
Chase State
Field Name | Function |
---|---|
State | The chase state for NPCs with this behavior (AI State Chase) |
Template | The template for the chase state (AI State Chase Template) |
Combat Idle State
Field Name | Function |
---|---|
State | The combat idle state for NPCs with this behavior (AI State Circle Target) |
Template | The template for the combat idle state (AI State Circle Target Template) |
Combat State
Field Name | Function |
---|---|
State | The combat state for NPCs with this behavior (AI State Combat) |
Template | The template for the combat state (AI State Combat Template) |
Walk Backward State
Field Name | Function |
---|---|
State | The walk backward state for NPCs with hits behaviors (AI State Walk Backward) |
Template | The template for the walk backward state (AI State Walk Backward Template) |
Flee State
Field Name | Function |
---|---|
State | The flee state for NPCs with this behavior (AI State Flee) |
Template | The template for the flee state (AI State Flee Template) |
Requirements Template | In this field you can define a requirement template. You can create requirement templates under Templates > Requirements. |
Flee check interval | How 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 Name | Function |
---|---|
Ability Template | A Phase Ability template is defined in this field. This template holds the abilties the NPC can use. |
Chance | Chance of this Phase Ability Template being on the NPC. |