WoW:API UnitInRange: Difference between revisions

m
Line 19: Line 19:
  if UnitInRange("target") then
  if UnitInRange("target") then
     print(UnitName("target") .. " is 40 yds away.")
     print(UnitName("target") .. " is 40 yds away.")
  elseif not UnitInRange("target") then
  else
     print(UnitName("target") .. " is not in range!")
     print(UnitName("target") .. " is not in range!")
  end
  end
Anonymous user