Download: Click Me
API:
Init the Script: require 'Pathing' Path:__init(range) range[number]: Range in which all units waypoints are tracked (25000 if unset)
Get Path of a Unit Path:GetData(unit) unit[object]: The object u want to get the Data from ==> returns table holding: index, position, dashgravity, dashspeed ({} if no Data) ==> #Path:GetData(unit): returns number of Waypoints saved for that unit table structure: GetData(unit) = { [waypoint.index] = {position, dashgravity, dashspeed} }
Get Position of unit after time x Path:GetPositionAfter(unit, time) unit[object]: The object u want to get the Data from time[number]: In Seconds ==> returns unit position after given time as 3D coordinate (unit.pos if no waypoint) ==> DrawCircle will show it very nicely
Example:
require 'Pathing' Path:__init(1000) OnDraw(function(myHero) DrawCircle(Path:GetPositionAfter(myHero, .75), 40, 0, 1, GoS.Red) end)
As i overwrote my Source ( xD ) i will rewrite it if neccessary, but for now i like it as it is