Difference between revisions of "Osiris/API/CharacterUsedItem"
From Divinity Engine Wiki
(Correct page location) |
(link related routines; mention that this event also gets thrown when pre-casting using an item and then cancelling) |
||
Line 7: | Line 7: | ||
* '''_Item''': The item that was used. | * '''_Item''': The item that was used. | ||
===== Notes ===== | ===== Notes ===== | ||
− | * | + | * If a player clicks on an item that causes a skill to be cast (such as a grenade, special arrow or scroll), this event will be thrown immediately. This means you get it even if the player then decides to cancel the actual casting e.g. by right-clicking instead of left-clicking on a target. |
===== See Also ===== | ===== See Also ===== | ||
+ | * [[Osiris/API/CharacterUsedItemFailed|CharacterUsedItemFailed]] | ||
+ | * [[Osiris/API/CharacterStoppedUsingItem|CharacterStoppedUsingItem]] | ||
+ | * [[Osiris/API/CharacterUseItem|CharacterUseItem]] | ||
* Helper [[Osiris/Shared/ProcBlockUseOfItem|ProcBlockUseOfItem]] | * Helper [[Osiris/Shared/ProcBlockUseOfItem|ProcBlockUseOfItem]] | ||
[[Category:Osiris Events]] | [[Category:Osiris Events]] |
Revision as of 17:50, 28 November 2017
Full Definition(s)
- event CharacterUsedItem((CHARACTERGUID)_Character, (ITEMGUID)_Item)
Description
Thrown whenever a character uses (player clicks on it, or character uses from story/script) an item whose OnUseActions property includes "Throw an Osiris Event".
Parameters
- _Character: The character that used the item.
- _Item: The item that was used.
Notes
- If a player clicks on an item that causes a skill to be cast (such as a grenade, special arrow or scroll), this event will be thrown immediately. This means you get it even if the player then decides to cancel the actual casting e.g. by right-clicking instead of left-clicking on a target.