Osiris/API/CharacterSetHitpointsPercentage

From Divinity Engine Wiki
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