Osiris/API/ItemCanSitOn

From Divinity Engine Wiki
Jump to: navigation, search
Full Definition(s)
  • query ItemCanSitOn([in](ITEMGUID)_Item, [out](INTEGER)_Bool)
Description

Returns whether _Item is can be sat/lied on, or a character can be constrained to it.

Return Values
  • Success/Failure: Default return value.
  • _Bool: 1 if the item has at least one of the following use actions: sit, lie, or constrain; 0 in other cases.
Notes
  • This query returns 1 even if someone else is already occupying the item and there is no room for another character to "sit" on it, or if the item was marked as non-interactable.
See Also