Talk:Console/Don't Starve Together Commands/@comment-26852192-20150803211546

Is there a way to use the

for k,v in pairs(AllPlayers) do command end

syntax to set all players health/sanity/hunger back to 100%, like the c_sethea​lth(percent)/c_setsanity(percent)/c_sethunger(percent) commands?

I realize that

for k,v in pairs(AllPlayers) do v.components.health:SetMaxHealth(value)

would probably work, but that will change their max health instead of just setting it back to 100% of their character's normal value and isn't what I want. Thanks!