s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games

Gamejams

Date
Theme

Date announced very soon. Theme revealed when the jam starts.

$50,000
prizepool
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
docsDocumentation apiAPI Reference
Resources
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.BaseCombatWeapon .
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.BaseCombatWeapon.NpcUsage.SpreadScale.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter