NPC · Core definition
Template Summoned Ally
Abstract
Template_Summoned_AllyParameters53
Derived NPCs2
NPCs based on this definition
Parameters
| Parameter | Value | Description |
|---|---|---|
Appearance | Trork_Hunter | Model to be used. |
ApplySeparation | true | When set to false, NPCs wont try to avoid each other or player, it can lead to them stacking together, but can help to avoid jerky-like movemenet in enclosed space. |
ViewRange | 15 | The range from which the target will be seen. If zero, sight will be disabled. |
ViewSector | 180 | The view sector within which the target needs to be to be seen. |
HearingRange | 8 | The range from which the target will be heard. If zero, hearing will be disabled. |
AbsoluteDetectionRange | 2 | The range at which a target is guaranteed to be detected. If zero, abosulte detection will be disabled. |
AlertedRange | 30 | A range within which the player can be seen/sensed when the NPC is alerted to their presence |
MaxSpeed | 10 | Maximum walking speed |
MaxClimbHeight | 3 | Max climb height |
MaxDropHeight | 5 | Max drop height |
RunThreshold | 0.3 | Relative speed at which run animation should be used. A value of 1 disables run animations |
Weapons | ["Weapon_Sword_Iron"] | NPC Weapons (and other main hand items). |
DefaultHotbarSlot | 0 | Default hotbar slot to equip (i.e. weapon). |
OffHand | ["Furniture_Crude_Torch"] | Off-hand items. |
DefaultOffHandSlot | -1 | Default off-hand item slot. -1 for nothing. |
UseCombatActionEvaluator | false | Whether to use the Combat Action Evaluator via an accompanying CombatConfig. This completely replaces all other combat behavior but still uses movement properties such as strafe durations and move speeds. |
Attack | Root_NPC_Attack_Melee | The attack to use. |
AttackDistance | 2 | The distance at which an NPC will execute attacks |
DesiredAttackDistanceRange | [1.5,1.5] | The distance within which the NPC wants to be from its target while attacking. The max value should be lower than AttackDistance. |
AttackPauseRange | [1.5,2] | The range for absolute minimum time before an NPC can execute a second attack (or block). |
CombatRelativeTurnSpeed | 1.5 | Modifier that decides turn speed difference in combat. |
CombatBehaviorDistance | 5 | The distance within which to switch from smart chasing to combat-oriented movement behavior. |
CombatDirectWeight | 10 | Weight for the direct combat movement behavior (i.e. just going straight at the target, maintaining a close distance and attacking. Set to 0 to disable. |
CombatAlwaysMovingWeight | 0 | Weight for the combat movement behavior where the NPC will always charge at you while attacking. Set to 0 to disable. |
CombatStrafeWeight | 10 | Weight for the combat strafing movement behavior. Set to 0 to disable. |
CombatStrafingDurationRange | [1,1] | How long to strafe for when in the combat strafing movement behavior. Only applies if CombatStrafeWeight is greater than 0. |
CombatStrafingFrequencyRange | [2,2] | How frequently to strafe when in the combat strafing movement behavior. Only applies if CombatStrafeWeight is greater than 0. |
CombatAttackPreDelay | [0.2,0.2] | The time delay range before the NPC performs an attack, provided it's in attack range. |
CombatAttackPostDelay | [0.2,0.2] | The time delay range after the NPC performs an attack, provided it's in attack range. |
CombatBackOffAfterAttack | true | Whether to back off after performing an attack. |
CombatBackOffDistanceRange | [4,4] | How far to back off after performing an attack. Max should be lower than the CombatBehaviorDistance. |
CombatBackOffDurationRange | [2,3] | How long to back off for after performing an attack. |
BlockAbility | Shield_Block | The interaction to use for blocking when backing away. Set to empty to disable blocking. |
BlockProbability | 50 | The probability this NPC will block when backing away if a BlockAbility is set. |
CombatFleeIfTooCloseDistance | 0 | In combat, if the target gets within this distance for a certain amount of time, the NPC will attempt to flee to a safe distance instead of simply backing away. Set to 0 to disable behavior. |
AdditionalCombatBehaviorMacroElement | Component_Instruction_Null | An optional macro element for supplying more bespoke combat movement behavior. Weight for the behavior must be internally defined in the macro element. |
TargetSwitchTimer | [2,2] | Minimum time the NPC will be locked onto a single target before switching |
TargetRange | 4 | The distance the target needs to be within to maintain priority over other targets while in combat |
ChaseRelativeSpeed | 0.67 | Relative chasing speed when pursuing a target. |
CombatMovingRelativeSpeed | 0.6 | Relative speed to use during combat specific movement (e.g. to achieve slower strafing). |
CombatBackwardsRelativeSpeed | 0.3 | Relative speed to use during combat when backing away from target. |
AimingHitProbability | 0.9 | Hit probability when aiming. Mostly affects ranged attacks. |
AimingSpread | 0 | Spread when aiming. Mostly affects ranged attacks. |
FlockArray | [] | Array containing NPCs for this flock type. |
DisableDamageGroups | ["Self"] | Groups not to take damage from. |
MaxHealth | 100 | Max health for the NPC. |
BreathesInWater | false | Whether this NPC can breathe underwater. |
NameTranslationKey | server.npcRoles.Template.name | Translation key for NPC name display |
DespawnTimer | 300 | How long the NPC will remain before it despawns in seconds. |
SummonerLeashRange | 30 | How far away from the summoner the NPC is allowed to be while in combat before trying to return to the summoner's position. |
DeathParticles | Effect_Death_Medium | The particle system that spawns when the NPC's corpse disappears. |
DropDeathItemsInstantly | false | Whether the NPC's drop list should be executed when the NPC dies. If set to false, items drop when the corpse disappears. |
DeathAnimationTime | 1.5 | The time it takes for this NPC's corpse to disappear. |
Identifiers and data source
| Entity id | Template_Summoned_Ally |
|---|---|
| Name key | — |
| Source file | Server/NPC/Roles/_Core/Templates/Template_Summoned_Ally.json |
| Component class | — |
Data source: HytaleDB snapshot 0.6.8-80059944 (Hytale 0.6.8), locale en-US. See data details.