Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Forward(pUnit, dist, Deg) -- left = 90 | right = -90
- if(not pUnit or not dist) then return nil end
- local o = pUnit:GetO() - math.pi/2
- if(Deg) then o = o + math.rad(Deg) end
- return pUnit:GetX()-(dist*math.sin(o)), pUnit:GetY()+(dist*math.cos(o))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement