Osiris/API/CanUseItem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
* '''_RequestID''': An integer identifying the use request. | * '''_RequestID''': An integer identifying the use request. | ||
===== Notes ===== | ===== Notes ===== | ||
* If Osiris does not respond with a [[Osiris/API/RequestProcessed|RequestProcessed]] after 1 second, the use action goes through. | * If Osiris does not respond with a [[Osiris/API/RequestProcessed|RequestProcessed]] after 1 second, the use action goes through. In shared, this is processed through the [[Osiris/Shared/ProcBlockUseOfItem|ProcBlockUseOfItem]] procedure. | ||
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/RequestProcessed|RequestProcessed]] | * [[Osiris/API/RequestProcessed|RequestProcessed]] | ||
Line 15: | Line 15: | ||
* [[Osiris/API/CanLockpickItem|CanLockpickItem]] | * [[Osiris/API/CanLockpickItem|CanLockpickItem]] | ||
* [[Osiris/API/CanCombineItem|CanCombineItem]] | * [[Osiris/API/CanCombineItem|CanCombineItem]] | ||
* [[Osiris/Shared/ProcBlockUseOfItem|ProcBlockUseOfItem]] | |||
[[Category:Osiris Events]] | [[Category:Osiris Events]] |
Revision as of 13:59, 19 December 2017
Full Definition(s)
- event CanUseItem((CHARACTERGUID)_Char, (ITEMGUID)_Item, (INTEGER)_RequestID)
Description
Thrown when a character uses an item. Allows Osiris to intercept the use and block it if necessary by sending the call RequestProcessed back to the engine.
Parameters
- _Char: The character using the item.
- _Item: The item being used.
- _RequestID: An integer identifying the use request.
Notes
- If Osiris does not respond with a RequestProcessed after 1 second, the use action goes through. In shared, this is processed through the ProcBlockUseOfItem procedure.