In my while loop, a variable shows up as never used, even though the value is used in the next iteration of the loop.
My code:
`waitUntil {
!isNil {
_this getVariable "bloodLevel"
}
};
_previousBloodLevel = _this getVariable "bloodLevel";
while { true } do {
if (_this getVariable "isVampire") exitWith {};
_currentBloodLevel = _this getVariable "bloodLevel";
if (_previousBloodLevel > 30 and _currentBloodLevel <= 30) then {
"You feel weak." remoteExec ["hint", _this];
};
if (_previousBloodLevel <= 30 and _currentBloodLevel > 30) then {
"You feel somewhat stronger." remoteExec ["hint", _this];
};
_previousBloodLevel = _currentBloodLevel;
_currentBloodLevel = _currentBloodLevel + 3;
if (_currentBloodLevel > 100) then {
_currentBloodLevel = 100;
};
_this setVariable ["bloodLevel", _currentBloodLevel];
sleep 15;
}`
