Stamina System
21 scripting commands. Also as Markdown for agents.
- allowSprintForce player to run/jog if set to false.
- enableAimPrecisionSet whether animation's aim precision affects weapon sway.
- enableFatigueEnables/Disables the person's fatigue.
- enableStaminaEnable/disable stamina system
- forceWalkForces unit to walk even if run or sprint is selected.
- getAimingCoefGet current aiming coefficient (higher ~ less precise, default is 1)
- getAnimAimPrecisionReturns aim precision for current animation
- getAnimSpeedCoefGet coefficient for animation speed.
- getCustomAimCoefReturns aimPrecision from animation state with custom value that will directly affects weapon sway size and speed.
- getFatigueReturns fatigue of given unit.
- getStaminaGet current stamina (~ seconds until depletion)
- getWeaponSwayReturns current size of weapon sway of a given unit, in radians. This command may still return a value greater 0 even if sway was effectively set to…
- isAimPrecisionEnabledReturns true if procedural aiming precision affects weapon sway.
- isForcedWalkReturns true if player is forced to walk with forceWalk.
- isSprintAllowedReturns true if player is allowed to sprint
- isStaminaEnabledCheck if stamina depletion is enabled.
- setAnimSpeedCoefSets a coefficient for animation speed (0.5 will play animations half the speed, 2 twice the speed).
- setCustomAimCoefSet custom aim precision coefficient for weapon sway
- setFatigueSets the person's fatigue, from 0 to 1.
- setStaminaSet units' stamina (seconds until depletion)
- setStaminaSchemeSets the scheme used for the Stamina system.