Last active
August 29, 2015 14:10
-
-
Save StinkyTwitch/640a7a7b6e1557c330e5 to your computer and use it in GitHub Desktop.
LineOfSight PE1 Mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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