SetMaxHealth
From Dragon Age Toolset Wiki
Set object's maximum health
- Parameters:
- oObject
- the object that we are modifying
- nHealth
- the new maximum health value for the object
- Returns:
- Nothing.
- Source:
- script.ldf
Description
Set object's maximum health.
Remarks
This function doesn't seem to work for creatures.
It appears that Chargen_ModifyCreaturePropertyBase with PROPERTY_DEPLETABLE_HEALTH will increase or decrease maximum health by the specified amount. This workaround has not yet been tested exhaustively, but it is based on the Bioware code in sys_autoscale_h.