From Divinity Engine Wiki
- query ItemIsClosed([in](ITEMGUID)_Item, [out](INTEGER)_Opened)
Returns whether _Item is closed. This query works both for doors and for items with an open/close use action.
- Success/Failure: Default return value.
- _Opened: 1 if _Item is closed, 0 otherwise.
- For items that cannot open/close, the query can either fail or return 0.