NPC · Core definition
Component Instruction Target Adjusted Attack
Component
Component_Instruction_Target_Adjusted_AttackParameters13
Parameters
| Parameter | Value | Description |
|---|---|---|
TargetSwitchTimer | [5,5] | Minimum time the NPC will be locked onto a single target before switching |
AttackSequence | Component_Instruction_Attack_Sequence_Temp | The attack sequence to use in combat |
AttackDistance | 2 | The distance at which an NPC will execute attacks |
TargetRange | 4 | The distance the target needs to be within to maintain priority over other targets |
CombatRelativeTurnSpeed | 1.5 | Modifier that decides turn speed difference in combat |
MaintainDistance | true | Whether this NPC should try to maintain distance to the target |
MaintainDistanceRange | 5 | The distance within which the distance maintaining logic will kick in |
DesiredDistanceRange | [2,2] | Distance range to remain away from the target |
MoveThreshold | 0.5 | Threshold outside the desired distance range before NPC will move to maintain distance |
StrafingDurationRange | [0.5,1] | How long to strafe for when strafing |
StrafingFrequencyRange | [2,4] | How often to strafe |
RelativeForwardsSpeed | 1 | Relative forwards move speed when maintaining distance |
RelativeBackwardsSpeed | 0.4 | Relative backwards move speed when maintaining distance |
Identifiers and data source
| Entity id | Component_Instruction_Target_Adjusted_Attack |
|---|---|
| Name key | — |
| Source file | Server/NPC/Roles/_Core/Components/Steps/Component_Instruction_Target_Adjusted_Attack.json |
| Component class | Instruction |
Data source: HytaleDB snapshot 0.6.8-80059944 (Hytale 0.6.8), locale en-US. See data details.