Difference between revisions of "Osiris/API/CharacterDestroyedItemTemplate"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented CharacterDestroyedItemTemplate)
 
m
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
* Before DOS2 Patch 5, '''_ItemTemplate''' only contained '''''TemplateName'''''.
 
* Before DOS2 Patch 5, '''_ItemTemplate''' only contained '''''TemplateName'''''.
 
* '''_Character''' is never '''''NULL'''''. If the character triggering the destruction of the item is not know (or if it was not destroyed by a character), this event does not get thrown. If you wish to catch all item destruction events, catch [[Osiris/API/ItemDestroyed|ItemDestroyed]] instead.
 
* '''_Character''' is never '''''NULL'''''. If the character triggering the destruction of the item is not know (or if it was not destroyed by a character), this event does not get thrown. If you wish to catch all item destruction events, catch [[Osiris/API/ItemDestroyed|ItemDestroyed]] instead.
* This event gets thrown when the destruction of the item starts, right after it entered the [[Osiris/API/ItemDestroying|destroying]] state.
+
* In spite of what the name suggests, this event gets thrown when the destruction of the item ''starts'', right after it entered the [[Osiris/API/ItemDestroying|destroying]] state.
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/CharacterDestroyedItem|CharacterDestroyedItem]]
 
* [[Osiris/API/CharacterDestroyedItem|CharacterDestroyedItem]]
Line 17: Line 17:
 
* [[Osiris/API/ItemTemplateDestroyed|ItemTemplateDestroyed]]
 
* [[Osiris/API/ItemTemplateDestroyed|ItemTemplateDestroyed]]
  
[[Category:Osiris Events]]
+
[[Category:Osiris Events|CharacterDestroyedItemTemplate]]

Latest revision as of 17:12, 19 February 2019

Full Definition(s)
  • event CharacterDestroyedItemTemplate((CHARACTERGUID)_Defender, (STRING)_ItemTemplate)
Description
  • Thrown when a character destroys an item.
Parameters
  • _Character: The character that destroyed the item.
  • _ItemTemplate: The root template of the item that was destroyed in the format TemplateName_UUID.
Notes
  • Before DOS2 Patch 5, _ItemTemplate only contained TemplateName.
  • _Character is never NULL. If the character triggering the destruction of the item is not know (or if it was not destroyed by a character), this event does not get thrown. If you wish to catch all item destruction events, catch ItemDestroyed instead.
  • In spite of what the name suggests, this event gets thrown when the destruction of the item starts, right after it entered the destroying state.
See Also