Osiris/API/ItemIsOpened: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
(Documented ItemIsOpened)
(No difference)

Revision as of 14:25, 24 March 2019

Full Definition(s)
  • query ItemIsOpened([in](ITEMGUID)_Item, [out](INTEGER)_Opened)
Description

Returns whether _Item is opened. This query works both for doors and for items with an open/close use action.

Return Values
  • Success/Failure: Default return value. The routine
  • _Opened: 0 if _Item is not a container, 1 otherwise.
Notes
  • For items that cannot open/close, the query can either fail or return 0.
See Also