(Formerly known as IsInventoryInteractionAvailable, which is now obsolete)
InventoryItem.IsInteractionAvailable(CursorMode)
Checks whether there is an event handler defined for activating the inventory item
in cursor mode MODE.
This function is very similar to RunInteraction, except that rather than run the event
handler script function, it simply returns true if something would have happened,
or false if unhandled_event would have been run.
This is useful for enabling options on a verb-coin style GUI, for example.
Example:
if (iKeyring.IsInteractionAvailable(eModeLookat) == 0)
Display("looking at this item would not do anything.");
See Also: IsInteractionAvailable,
InventoryItem.RunInteraction
|