mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
cc414de8d1
* Initial commit advanced fatigue * Added animation changes * Fixes, rewrites * Broadcast 3den attribute and fix UBC * Further animation tweaks * Added Eden attribute and CBA settings * Switch to CBA events * Add beautified component name * Rewrites, fixes, tweaks * Move setVars to GVARs * Add setting to disable * Switch to status effect handler for sprint and jog blocking * Add component name * Failsafe for early unit player EH * Removed raised weapon penalty for pistols * Added respawn compatibility * Tweaked side jog animation speed * Added support for virtual load * Added stamina bar * Remove debug flags * Added custom duty factor functions and values * Added structural comments * Disabled CBA settings, added ACE settings * Fixed config * Added readme * Remove leftover debug diag_logs * Improved stringtable
19 lines
380 B
Plaintext
19 lines
380 B
Plaintext
/*
|
|
* Author: BaerMitUmlaut
|
|
* Creates the stamina bar.
|
|
*
|
|
* Arguments:
|
|
* 0: Display <DISPLAY>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*/
|
|
#include "script_component.hpp"
|
|
params ["_display"];
|
|
|
|
private _staminaBar = _display ctrlCreate [QGVAR(StaminaBarContainer), -1];
|
|
uiNamespace setVariable [QGVAR(staminaBarContainer), _staminaBar];
|
|
|
|
_staminaBar ctrlSetFade 1;
|
|
_staminaBar ctrlCommit 0;
|