Returns a (squared) distance to the quest objective location


See also Quest functions.

Signature:

distance = GetDistanceSqToQuest(index)

Arguments:

Returns:

  • distance - Squared distance in yards to the quest objective location, 0 if the distance cannot be determined, or nil if the index points at a log header (number)