Skip to content

Instantly share code, notes, and snippets.

@StinkyTwitch
Last active August 29, 2015 14:10
Show Gist options
  • Save StinkyTwitch/640a7a7b6e1557c330e5 to your computer and use it in GitHub Desktop.
Save StinkyTwitch/640a7a7b6e1557c330e5 to your computer and use it in GitHub Desktop.
LineOfSight PE1 Mod
function LineOfSight(a, b)
local ax, ay, az = ObjectPosition(a)
local bx, by, bz = ObjectPosition(b)
if UnitID( "Target" ) == "76585" then
return true
elseif TraceLine(ax, ay, az+2.25, bx, by, bz+2.25, losFlags) then
return false
end
return true
end
--[[ ORIGINAL NON-WORKING ON RAGEWING
function LineOfSight(a, b)
local ax, ay, az = ObjectPosition(a)
local bx, by, bz = ObjectPosition(b)
if TraceLine(ax, ay, az+2.25, bx, by, bz+2.25, losFlags) then
return false
end
return true
end
--]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment