# AIGetDirection

FlagsNative

# Arguments

  • point — from
  • point — to

Returns — point

native point AIGetDirection(point from, point to);

Category: Unclassified

# Examples

mods/heroesdata.stormmodbase.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)) {