# AIGetDirection
Flags —
Native
# Arguments
point
— frompoint
— to
Returns — point
native point AIGetDirection(point from, point to);
# Related
Category: Unclassified
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1082
// Implementation
lv_center = RegionGetCenter(lp_region);
lv_dir = AIGetDirection(lv_center, lp_point);
lv_newPoint = Point((PointGetX(lv_center) + (PointGetX(lv_dir) * 3.0)), (PointGetY(lv_center) + (PointGetY(lv_dir) * 3.0)));
if ((RegionContainsPoint(lp_region, lv_newPoint) == true)) {