Difference between revisions of "Osiris/API/ApplyDamage"
From Divinity Engine Wiki
(Documented ApplyDamage) |
m |
||
Line 13: | Line 13: | ||
* [[Osiris/API/CharacterTemplateKilledByCharacter|CharacterTemplateKilledByCharacter]] | * [[Osiris/API/CharacterTemplateKilledByCharacter|CharacterTemplateKilledByCharacter]] | ||
− | [[Category:Osiris Calls]] | + | [[Category:Osiris Calls|ApplyDamage]] |
Revision as of 16:04, 19 December 2017
Full Definition(s)
- (Shared mod) call ApplyDamage((GUIDSTRING)_Object, (INTEGER)_Damage, (STRING)_DamageType)
- call ApplyDamage((GUIDSTRING)_Object, (INTEGER)_Damage, (STRING)_DamageType, (GUIDSTRING)_Source)
Description
Applies _Damage points of _DamageType damage to _Object.
(New parameter in DOS2 Patch 5)If _Source is not NULL, it will be considered as the source of the damage and will be reported as such to CharacterReceivedDamage and, if the character dies as a consequence of this damage application, to CharacterKilledBy and CharacterTemplateKilledByCharacter.
Notes
- The overload in the Shared mod uses the default _Source = NULL_00000000-0000-0000-0000-000000000000.