Difference between revisions of "Osiris/API/CanLockpickItem"
From Divinity Engine Wiki
(Created page with "===== Full Definition(s) ===== * event '''CanLockpickItem'''(''(CHARACTERGUID)'''''_Char''', ''(ITEMGUID)'''''_Item''', ''(INTEGER)'''''_RequestID''') ===== Description =====...") |
|||
Line 6: | Line 6: | ||
* '''_Char''': The character lockpicking the item. | * '''_Char''': The character lockpicking the item. | ||
* '''_Item''': The item being lockpicked. | * '''_Item''': The item being lockpicked. | ||
− | * '''_RequestID''': An integer identifying the | + | * '''_RequestID''': An integer identifying the lockpick request. |
===== Notes ===== | ===== Notes ===== | ||
* If Osiris does not respond with a [[Osiris/API/RequestProcessed|RequestProcessed]] after 1 second, the lockpick action goes through. | * If Osiris does not respond with a [[Osiris/API/RequestProcessed|RequestProcessed]] after 1 second, the lockpick action goes through. | ||
Line 12: | Line 12: | ||
* [[Osiris/API/RequestProcessed|RequestProcessed]] | * [[Osiris/API/RequestProcessed|RequestProcessed]] | ||
* [[Osiris/API/CanUseItem|CanUseItem]] | * [[Osiris/API/CanUseItem|CanUseItem]] | ||
+ | * [[Osiris/API/CanUseItem|CanPickupItem]] | ||
* [[Osiris/API/CanMoveItem|CanMoveItem]] | * [[Osiris/API/CanMoveItem|CanMoveItem]] | ||
[[Category:Osiris Events]] | [[Category:Osiris Events]] |
Revision as of 14:47, 19 December 2017
Full Definition(s)
- event CanLockpickItem((CHARACTERGUID)_Char, (ITEMGUID)_Item, (INTEGER)_RequestID)
Description
Thrown when a character attempts to lockpick an item. Allows Osiris to intercept the lockpick and block it if necessary by sending the call RequestProcessed back to the engine.
Parameters
- _Char: The character lockpicking the item.
- _Item: The item being lockpicked.
- _RequestID: An integer identifying the lockpick request.
Notes
- If Osiris does not respond with a RequestProcessed after 1 second, the lockpick action goes through.