Osiris/API/CharacterSetHitpointsPercentage

From Divinity Engine Wiki
Revision as of 12:37, 20 December 2017 by Tinkerer (talk | contribs) (Documented CharacterSetHitpointsPercentage and the related GLO_BlockRegenAfterCombat flag)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call CharacterSetHitpointsPercentage((CHARACTERGUID)_Character, (INTEGER)_Percentage)
Description

Sets the hit points percentage of _Character to _Percentage.

Notes
  • By default, when a character leaves combat its hit points will regenerate to 100% after a few seconds due to a reaction in the DefaultCharacter behaviour script. You can prevent this by setting the object flag GLO_BlockRegenAfterCombat on a character.
See Also