Class NPCRangedCombatComponent
Added to an NPC doing ranged combat.
Inheritance
System.Object
NPCRangedCombatComponent
Namespace: Content.Server.NPC.Components
Assembly: Content.Server.dll
Syntax
public sealed class NPCRangedCombatComponent : Component
Fields
| Improve this Doc View SourceAccuracyThreshold
Maximum distance, between our rotation and the target's, to consider shooting it.
Declaration
public Angle AccuracyThreshold
Field Value
Type | Description |
---|---|
Angle |
LOSAccumulator
How long until the last line of sight check.
Declaration
public float LOSAccumulator
Field Value
Type | Description |
---|---|
System.Single |
RotationSpeed
If null it will instantly turn.
Declaration
public Angle? RotationSpeed
Field Value
Type | Description |
---|---|
System.Nullable<Angle> |
ShootAccumulator
Declaration
public float ShootAccumulator
Field Value
Type | Description |
---|---|
System.Single |
ShootDelay
Delay after target is in LOS before we start shooting.
Declaration
public float ShootDelay
Field Value
Type | Description |
---|---|
System.Single |
SoundTargetInLOS
Sound to play if the target enters line of sight.
Declaration
public SoundSpecifier SoundTargetInLOS
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
Status
Declaration
public CombatStatus Status
Field Value
Type | Description |
---|---|
CombatStatus |
Target
Declaration
public EntityUid Target
Field Value
Type | Description |
---|---|
EntityUid |
TargetInLOS
Is the target still considered in LOS since the last check.
Declaration
public bool TargetInLOS
Field Value
Type | Description |
---|---|
System.Boolean |