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
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
BaseCombatNpc
SpeedVariation
chevron_left Classes
class
BaseCombatNpc

Constructors

functionsBaseCombatNpc

Properties

data_objectAimSpreadScaledata_objectCalloutRangedata_objectFollowDistancedata_objectIdleBehaviourdata_objectInventorydata_objectLeaderdata_objectPainLinesdata_objectPatrolLinesdata_objectPatrolRadiusdata_objectReactionTimeAlertdata_objectReactionTimeRelaxeddata_objectRelaxDelaydata_objectSearchTimeoutdata_objectSpeedVariationdata_objectSpotLinesdata_objectTauntLinesdata_objectWeapondata_objectWeaponChoices

Methods

functionsArmWithlockOnCarryStoppedlockOnDamagedlockOnDeathlockOnDestroylockOnRefreshlockOnStartlockOnUpdatelockSelectSchedule
SpeedVariation
Each soldier moves up to this much faster or slower than the rest (0.05 = ±5%), so a squad doesn't move in lockstep. Keep it small - too much pushes a walk into a jog.
property
float SpeedVariation { get; set; }
Declared in Sandbox.Npcs.BaseCombatNpc ยท Assembly Sandbox.Engine
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