Difference between revisions of "Osiris/API/ItemSetCanInteract"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "===== Full Definition(s) ===== * call '''ItemSetCanInteract'''(''(ITEMGUID)'''''_Item''', ''(INTEGER)'''''_Bool''') ===== Description ===== Makes the item interactable if '''_...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
Makes the item interactable if '''_Bool''' is '''1''' and non-interactable if '''_Bool''' is '''0'''.
 
Makes the item interactable if '''_Bool''' is '''1''' and non-interactable if '''_Bool''' is '''0'''.
 
===== Notes =====
 
===== Notes =====
For items with a defined [[:Category:Use_Actions|Use Action]], that actions is enabled or disabled. If no specific Use Action is defined, using the item will only send a use event to Osiris, equivalent to the [[Use_Action:Story_Use|Story Use]] Use Action.
+
* For items with a defined [[:Category:Use_Actions|Use Action]], that actions is enabled or disabled. If no specific Use Action is defined, using the item will only send a use event to Osiris, equivalent to the [[Use_Action:Story_Use|Story Use]] Use Action.
 +
 
 +
===== See Also =====
 +
* [[Osiris/API/ItemCanSitOn|ItemCanSitOn]]
 +
* [[Osiris/API/CharacterUsedItem|CharacterUsedItem]]
  
 
[[Category:Osiris Calls|ItemSetCanInteract]]
 
[[Category:Osiris Calls|ItemSetCanInteract]]

Latest revision as of 11:14, 27 November 2018

Full Definition(s)
  • call ItemSetCanInteract((ITEMGUID)_Item, (INTEGER)_Bool)
Description

Makes the item interactable if _Bool is 1 and non-interactable if _Bool is 0.

Notes
  • For items with a defined Use Action, that actions is enabled or disabled. If no specific Use Action is defined, using the item will only send a use event to Osiris, equivalent to the Story Use Use Action.
See Also