Difference between revisions of "Osiris/API/CanPickupItem"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "===== Full Definition(s) ===== * event '''CanPickupItem'''(''(CHARACTERGUID)'''''_Char''', ''(ITEMGUID)'''''_Item''', ''(INTEGER)'''''_RequestID''') ===== Description ===== Th...")
 
Line 11: Line 11:
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/RequestProcessed|RequestProcessed]]
 
* [[Osiris/API/RequestProcessed|RequestProcessed]]
* [[Osiris/API/CanLockpickItem|CanMoveItem]]
+
* [[Osiris/API/CanMoveItem|CanMoveItem]]
 +
* [[Osiris/API/CanCombineItem|CanCombineItem]]
 
* [[Osiris/API/CanUseItem|CanUseItem]]
 
* [[Osiris/API/CanUseItem|CanUseItem]]
 
* [[Osiris/API/CanLockpickItem|CanLockpickItem]]
 
* [[Osiris/API/CanLockpickItem|CanLockpickItem]]
 
   
 
   
 
[[Category:Osiris Events]]
 
[[Category:Osiris Events]]

Revision as of 14:51, 19 December 2017

Full Definition(s)
  • event CanPickupItem((CHARACTERGUID)_Char, (ITEMGUID)_Item, (INTEGER)_RequestID)
Description

Thrown when a character attempts to pick up an item. Allows Osiris to intercept the pickup and block it if necessary by sending the call RequestProcessed back to the engine.

Parameters
  • _Char: The character picking up the item.
  • _Item: The item being picked up.
  • _RequestID: An integer identifying the pickup request.
Notes
  • If Osiris does not respond with a RequestProcessed after 1 second, the pickup action goes through.
See Also