Osiris/API/ApplyDamage: Difference between revisions
Jump to navigation
Jump to search
(Documented ApplyDamage) |
Jameshruby (talk | contribs) No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
Applies '''_Damage''' points of '''_DamageType''' damage to '''_Object'''. | 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 [[Osiris/API/CharacterReceivedDamage|CharacterReceivedDamage]] and, if the character dies as a consequence of this damage application, to [[Osiris/API/CharacterKilledBy|CharacterKilledBy]] and [[Osiris/API/CharacterTemplateKilledByCharacter|CharacterTemplateKilledByCharacter]]. | ''(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 [[Osiris/API/CharacterReceivedDamage|CharacterReceivedDamage]] and, if the character dies as a consequence of this damage application, to [[Osiris/API/CharacterKilledBy|CharacterKilledBy]] and [[Osiris/API/CharacterTemplateKilledByCharacter|CharacterTemplateKilledByCharacter]]. | ||
===== Notes ===== | ===== Notes ===== | ||
* The overload in the Shared mod uses the default '''_Source''' = '''NULL_00000000-0000-0000-0000-000000000000'''. | * The overload in the Shared mod uses the default '''_Source''' = '''NULL_00000000-0000-0000-0000-000000000000'''. | ||
* Possible known damage types: | |||
** Air | |||
** Fire | |||
** Physical | |||
** Shadow | |||
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/CharacterKilledBy|CharacterKilledBy]] | * [[Osiris/API/CharacterKilledBy|CharacterKilledBy]] | ||
Line 13: | Line 19: | ||
* [[Osiris/API/CharacterTemplateKilledByCharacter|CharacterTemplateKilledByCharacter]] | * [[Osiris/API/CharacterTemplateKilledByCharacter|CharacterTemplateKilledByCharacter]] | ||
[[Category:Osiris Calls]] | [[Category:Osiris Calls|ApplyDamage]] |
Latest revision as of 17:56, 25 May 2019
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.
- Possible known damage types:
- Air
- Fire
- Physical
- Shadow