You can verify this by loading up the attached scenario file, and running the following code in the Lua Script Editor:
Code: Select all
local unit = ScenEdit_GetUnit({guid='FV72FT-0HMO80RCBK6FP'})
print("current exhaustion (before): "..unit.currentExhaustion)
print("attempting to set current exhaustion = 0...")
ScenEdit_SetUnit({guid='FV72FT-0HMO80RCBK6FP', currentExhaustion=0})
print("current exhaustion (after): "..unit.currentExhaustion)
assert(unit.currentExhaustion == 0)Thank you!