Difference between revisions of "Osiris/API/ItemIsClosed"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented ItemIsClosed)
 
m
 
Line 9: Line 9:
 
* For items that cannot open/close, the query can either fail or return '''0'''.
 
* For items that cannot open/close, the query can either fail or return '''0'''.
 
===== See Also =====
 
===== See Also =====
 +
* [[Osiris/API/DoorIsClosing|DoorIsClosing]]
 
* [[Osiris/API/DoorIsOpening|DoorIsOpening]]
 
* [[Osiris/API/DoorIsOpening|DoorIsOpening]]
* [[Osiris/API/DoorIsClosing|DoorIsClosing]]
+
* [[Osiris/API/ItemIsContainer|ItemIsContainer]]
 
* [[Osiris/API/ItemIsOpened|ItemIsOpened]]
 
* [[Osiris/API/ItemIsOpened|ItemIsOpened]]
  
 
[[Category:Osiris Queries|ItemIsClosed]]
 
[[Category:Osiris Queries|ItemIsClosed]]

Latest revision as of 08:47, 25 March 2019

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

Returns whether _Item is closed. 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 closed, 0 otherwise.
Notes
  • For items that cannot open/close, the query can either fail or return 0.
See Also