diff --git a/addons/medical/functions/fnc_enteredReviveState.sqf b/addons/medical/functions/fnc_enteredReviveState.sqf index 348e6b50d3..4368cf5985 100644 --- a/addons/medical/functions/fnc_enteredReviveState.sqf +++ b/addons/medical/functions/fnc_enteredReviveState.sqf @@ -11,7 +11,7 @@ if (_reviveVal == 1 && {[_unit] call EFUNC(common,isPlayer)} || _reviveVal == 2) false; }; - private _lifesLeft = _unit getVariable[QGVAR(amountOfReviveLives), GVAR(amountOfReviveLives)]; + private _lifesLeft = _unit getVariable [QGVAR(amountOfReviveLives), GVAR(amountOfReviveLives)]; if (GVAR(amountOfReviveLives) > 0 && _lifesLeft == 0) exitWith { [_unit, "NoLives", []] call FUNC(stateEvent); }; diff --git a/addons/medical/functions/fnc_handleLocal.sqf b/addons/medical/functions/fnc_handleLocal.sqf index 42e8a9b7b2..e5b0f4a2b3 100644 --- a/addons/medical/functions/fnc_handleLocal.sqf +++ b/addons/medical/functions/fnc_handleLocal.sqf @@ -18,7 +18,7 @@ params ["_unit", "_local"]; if (_local) then { // If the unit had a loop tracking its vitals, restart it locally - if (_unit getVariable[QGVAR(addedToUnitLoop),false]) then { + if (_unit getVariable [QGVAR(addedToUnitLoop),false]) then { [_unit, true] call FUNC(addVitalLoop); }; diff --git a/addons/medical/functions/fnc_handleStateRevive.sqf b/addons/medical/functions/fnc_handleStateRevive.sqf index 458adb92a6..7465af14b0 100644 --- a/addons/medical/functions/fnc_handleStateRevive.sqf +++ b/addons/medical/functions/fnc_handleStateRevive.sqf @@ -34,7 +34,7 @@ if (GVAR(maxReviveTime) > 0 && {CBA_missionTime - _startTime > GVAR(maxReviveTim if !(_unit getVariable [QGVAR(inReviveState), false]) exitWith { // Revived without dieing, so in case we have lifes, remove one. if (GVAR(amountOfReviveLives) > 0) then { - _lifesLeft = _unit getVariable[QGVAR(amountOfReviveLives), GVAR(amountOfReviveLives)]; + _lifesLeft = _unit getVariable [QGVAR(amountOfReviveLives), GVAR(amountOfReviveLives)]; _unit setVariable [QGVAR(amountOfReviveLives), _lifesLeft - 1, true]; }; _unit setVariable [QGVAR(reviveStartTime), nil]; diff --git a/addons/medical/functions/fnc_stateEvent.sqf b/addons/medical/functions/fnc_stateEvent.sqf index 8c802f6be9..658497bb1e 100644 --- a/addons/medical/functions/fnc_stateEvent.sqf +++ b/addons/medical/functions/fnc_stateEvent.sqf @@ -23,7 +23,7 @@ diag_log format["ace_medical_stateEvent: %1", _this]; _event = toLower _event; -private _unitState = _unit getvariable [QGVAR(state), [CBA_missionTime, GVAR(STATE_MACHINE) getVariable "Default"]]; +private _unitState = _unit getVariable [QGVAR(state), [CBA_missionTime, GVAR(STATE_MACHINE) getVariable "Default"]]; _unitState params ["_lastTime", "_state"]; _state params ["_name", "_handler", "_onEntry", "_onExit", "_transitions"]; diff --git a/addons/medical/functions/fnc_stateMachine.sqf b/addons/medical/functions/fnc_stateMachine.sqf index d965eb06d3..0758bd0b44 100644 --- a/addons/medical/functions/fnc_stateMachine.sqf +++ b/addons/medical/functions/fnc_stateMachine.sqf @@ -21,7 +21,7 @@ GVAR(monitoredUnitsListIsSorted) = false; _x params ["_unit"]; if (!isNull _unit && alive _unit) then { - private _unitState = _unit getvariable [QGVAR(state), [CBA_missionTime, DEFAULT_STATE]]; + private _unitState = _unit getVariable [QGVAR(state), [CBA_missionTime, DEFAULT_STATE]]; _unitState params ["_lastTime", "_state"]; if ((_lastTime + DELAY) > CBA_missionTime) exitWith {_exit = true;};