Osiris/API/ItemIsOpened

From Divinity Engine Wiki
Revision as of 09:47, 25 March 2019 by Tinkerer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.
  • _Opened: 1 if _Item is open, 0 otherwise.
Notes
  • For items that cannot open/close, the query can either fail or return 0.
See Also