Returns whether the player's target is in range for using an item associated with a current quest. Available for a number of quests which involve using an item (i.e. "Use the MacGuffin to summon and defeat the boss", "Use this saw to fell 12 trees", etc.)


See also Quest functions, Objectives tracking functions.

Signature:

inRange = IsQuestLogSpecialItemInRange(questIndex)

Arguments:

  • questIndex - Index of a quest log entry with an associated usable item (between 1 and GetNumQuestLogEntries()) (number)

Returns:

  • inRange - 1 if the player is close enough to the target to use the item; 0 if the target is out of range; nil if the quest item does not require a target (number)