SC2Mapster.com Wiki

SC2 API / Functions / AIFilterPathable

UnitGroupFilter

unitgroup AiFilterPathable(unitgroup g, point dest)

Filter the units that can reach the destination.

Parameters

unitgroup g

Original unit group

point dest

Destination

Return value

unitgroup - A unit group composed of all the units that can go to the destination.

Examples

Example: Sample Usage
// Select all the units of the player 1
unitgroup g = UnitGroup(null, 1, null, null, 0);

g = AIFilterPathable(g, Point(50, 50));
// Group of all units of the player 1 able to go to the point 50, 50

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of vjeux vjeux Apr 05, 2010 at 14:41 UTC - 0 likes

    This function returns really strange result. Not reliable.

  • 1 comment

Facts

Date created
Mar 27, 2010
Last updated
Mar 28, 2010

Authors