Difference between revisions of "Osiris/API/CharacterDie"

From Divinity Engine Wiki
Jump to: navigation, search
m
 
(5 intermediate revisions by 2 users not shown)
Line 10: Line 10:
 
* '''Arrow''': Took an arrow to the knee.
 
* '''Arrow''': Took an arrow to the knee.
 
* '''DoT''': Damage-over-Time.
 
* '''DoT''': Damage-over-Time.
* '''Incinerate''': Burnt to death. Cannot be source-vampirised.
+
* '''Incinerate''': Burnt to death.
 
* '''Acid''': Died from acid/poison damage.
 
* '''Acid''': Died from acid/poison damage.
 
* '''Electrocution''': Died from electricity damage.
 
* '''Electrocution''': Died from electricity damage.
Line 18: Line 18:
 
* '''Surrender''': No idea.
 
* '''Surrender''': No idea.
 
* '''Hang''': Died from being hanged. Hint: put the character on an invisible floating platform to make them hang above the ground like e.g. the corpse next to Master Siva in Act 2.
 
* '''Hang''': Died from being hanged. Hint: put the character on an invisible floating platform to make them hang above the ground like e.g. the corpse next to Master Siva in Act 2.
* '''KnockedDown''': No idea (maybe dead in knocked-down pose, no blood?).
+
* '''KnockedDown''': A special death state for characters who died while knocked-down (so they don't fall down all over again).
 
* '''LifeTime''': Summon's lifetime ran out.
 
* '''LifeTime''': Summon's lifetime ran out.
  
 +
''(New in DOS2 Patch 5)'' If '''_Source''' is not '''''NULL''''', it specifies the killer. This parameter will be passed on to the [[Osiris/API/CharacterKilledBy|CharacterKilledBy]] and [[Osiris/API/CharacterTemplateKilledByCharacter|CharacterTemplateKilledByCharacter]] events.
 
===== Notes =====
 
===== Notes =====
 
* /
 
* /
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/CharacterDieImmediate|CharacterDieImmediate]]
 
* [[Osiris/API/CharacterDieImmediate|CharacterDieImmediate]]
+
* [[Osiris/API/CharacterDied|CharacterDied]]
[[Category:Osiris Calls]]
+
* [[Osiris/API/CharacterDying|CharacterDying]]
 +
* [[Osiris/API/CharacterKilledBy|CharacterKilledBy]]
 +
* [[Osiris/API/CharacterTemplateKilledByCharacter|CharacterTemplateKilledByCharacter]]
 +
 
 +
 
 +
[[Category:Osiris Calls|CharacterDie]]

Latest revision as of 17:13, 19 December 2017

Full Definition(s)
  • call CharacterDie((CHARACTERGUID)_Character, (INTEGER)_GenerateTreasure, (STRING)_DeathType, (GUIDSTRING)_Source)
Description

Kills _Character as if it died from _DeathType, coming from _Source. Depending on whether _GenerateTreasure is 1 or 0, treasure will be generated as if a player killed _Character or not.

Depending on the death type, the corpse and its pose can be different. Possible death types are (could use some love from someone with detailed knowledge about what these are used for):

  • None: no specific death type/default.
  • Physical: Died from physical damage.
  • Piercing: Died from piercing weapon damage.
  • Arrow: Took an arrow to the knee.
  • DoT: Damage-over-Time.
  • Incinerate: Burnt to death.
  • Acid: Died from acid/poison damage.
  • Electrocution: Died from electricity damage.
  • FrozenShatter: Died from shattering after being frozen. Cannot be source-vampirised.
  • PetrifiedShatter: Died from shattering after being petrified. Cannot be source-vampirised.
  • Explode: self-explanatory. Cannot be source-vampirised.
  • Surrender: No idea.
  • Hang: Died from being hanged. Hint: put the character on an invisible floating platform to make them hang above the ground like e.g. the corpse next to Master Siva in Act 2.
  • KnockedDown: A special death state for characters who died while knocked-down (so they don't fall down all over again).
  • LifeTime: Summon's lifetime ran out.

(New in DOS2 Patch 5) If _Source is not NULL, it specifies the killer. This parameter will be passed on to the CharacterKilledBy and CharacterTemplateKilledByCharacter events.

Notes
  • /
See Also