API Referenceglobal
NpcUsageclass
How an NPC fights with a weapon - engagement band, burst cadence and accuracy.
object→NpcUsage
Constructors1
Showing 1 constructors
public NpcUsage()
How an NPC fights with a weapon - engagement band, burst cadence and accuracy.
No results match this filter.
Properties8
Showing 8 properties
public int Sandbox.BaseCombatWeapon.NpcUsage.BurstMax { get; set; }
Most shots in a burst.
Returns:
int—public int Sandbox.BaseCombatWeapon.NpcUsage.BurstMin { get; set; }
Fewest shots in a burst.
Returns:
int—public bool Sandbox.BaseCombatWeapon.NpcUsage.CanBePickedUp { get; set; }
Can NPCs pick this up off the ground to arm themselves?
Returns:
bool—public float Sandbox.BaseCombatWeapon.NpcUsage.MaxRange { get; set; }
Furthest distance the NPC will attack from.
Returns:
float—public float Sandbox.BaseCombatWeapon.NpcUsage.MinRange { get; set; }
Closer than this and the NPC shouldn't attack - back off first.
Returns:
float—public float Sandbox.BaseCombatWeapon.NpcUsage.RestMax { get; set; }
Longest rest between bursts, seconds.
Returns:
float—public float Sandbox.BaseCombatWeapon.NpcUsage.RestMin { get; set; }
Shortest rest between bursts, seconds.
Returns:
float—public float Sandbox.BaseCombatWeapon.NpcUsage.SpreadScale { get; set; }
Spread multiplier when an NPC fires this - how forgiving the weapon is in untrained hands. The NPC multiplies in its own skill and applies the result via `Sandbox.BaseCombatWeapon.NpcUsage.SpreadScale`.
Returns:
float—No results match this filter.