Show / Hide Table of Contents

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 Source

AccuracyThreshold

Maximum distance, between our rotation and the target's, to consider shooting it.

Declaration
public Angle AccuracyThreshold
Field Value
Type Description
Angle
| Improve this Doc View Source

LOSAccumulator

How long until the last line of sight check.

Declaration
public float LOSAccumulator
Field Value
Type Description
System.Single
| Improve this Doc View Source

RotationSpeed

If null it will instantly turn.

Declaration
public Angle? RotationSpeed
Field Value
Type Description
System.Nullable<Angle>
| Improve this Doc View Source

ShootAccumulator

Declaration
public float ShootAccumulator
Field Value
Type Description
System.Single
| Improve this Doc View Source

ShootDelay

Delay after target is in LOS before we start shooting.

Declaration
public float ShootDelay
Field Value
Type Description
System.Single
| Improve this Doc View Source

SoundTargetInLOS

Sound to play if the target enters line of sight.

Declaration
public SoundSpecifier SoundTargetInLOS
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

Status

Declaration
public CombatStatus Status
Field Value
Type Description
CombatStatus
| Improve this Doc View Source

Target

Declaration
public EntityUid Target
Field Value
Type Description
EntityUid
| Improve this Doc View Source

TargetInLOS

Is the target still considered in LOS since the last check.

Declaration
public bool TargetInLOS
Field Value
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾