s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
NpcUsage
chevron_left Classes
struct
NpcUsage

Constructors

functionsNpcUsage

Properties

data_objectBurstMaxdata_objectBurstMindata_objectCanBePickedUpdata_objectMaxRangedata_objectMinRangedata_objectRestMaxdata_objectRestMindata_objectSpreadScale
NpcUsage
How an NPC fights with a weapon - engagement band, burst cadence and accuracy.
struct Sandbox.BaseWeapon .
sealedSandbox.Engine

build Constructors 1

NpcUsage ()
How an NPC fights with a weapon - engagement band, burst cadence and accuracy.

data_object Properties 8

BurstMax
int
Most shots in a burst.
BurstMin
int
Fewest shots in a burst.
CanBePickedUp
bool
Can NPCs pick this up off the ground to arm themselves?
MaxRange
float
Furthest distance the NPC will attack from.
MinRange
float
Closer than this and the NPC shouldn't attack - back off first.
RestMax
float
Longest rest between bursts, seconds.
RestMin
float
Shortest rest between bursts, seconds.
SpreadScale
float
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.BaseWeapon.NpcUsage.SpreadScale.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter