Osiris/API/CanMoveItem: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
(Created page with "===== Full Definition(s) ===== * event '''CanMoveItem'''(''(CHARACTERGUID)'''''_Char''', ''(ITEMGUID)'''''_Item''', ''(INTEGER)'''''_RequestID''') ===== Description ===== Thro...")
 
mNo edit summary
 
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
* event '''CanMoveItem'''(''(CHARACTERGUID)'''''_Char''', ''(ITEMGUID)'''''_Item''', ''(INTEGER)'''''_RequestID''')
* event '''CanMoveItem'''(''(CHARACTERGUID)'''''_Char''', ''(ITEMGUID)'''''_Item''', ''(INTEGER)'''''_RequestID''')
===== Description =====
===== Description =====
Thrown when a character attempts to move an item. Allows Osiris to intercept the use and block it if necessary by sending the call [[Osiris/API/RequestProcessed|RequestProcessed]] back to the engine.
Thrown when a character attempts to move an item. Allows Osiris to intercept the move and block it if necessary by sending the call [[Osiris/API/RequestProcessed|RequestProcessed]] back to the engine.
===== Parameters =====
===== Parameters =====
* '''_Char''': The character moving the item.
* '''_Char''': The character moving the item.
* '''_Item''': The item being moving.
* '''_Item''': The item being moved.
* '''_RequestID''': An integer identifying the use request.
* '''_RequestID''': An integer identifying the move request.
===== Notes =====
===== Notes =====
* If Osiris does not respond with a [[Osiris/API/RequestProcessed|RequestProcessed]] after 1 second, the move action goes through.
* If Osiris does not respond with a [[Osiris/API/RequestProcessed|RequestProcessed]] after 1 second, the move 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/CanLockpickItem|CanLockpickItem]]
* [[Osiris/API/CanPickupItem|CanPickupItem]]
* [[Osiris/API/CanCombineItem|CanCombineItem]]
   
   
[[Category:Osiris Events]]
[[Category:Osiris Events|CanMoveItem]]

Latest revision as of 14:02, 19 December 2017

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

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

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