SC2Mapster.com Wiki

RegionCircle

region RegionCircle(point base, fixed radius);

Create a circle region around a point.

Parameters

point base

Center of the circle. If the center is null, the

fixed radius

Radius of the circle

Return value

region - Circle shaped region centered around the base.

Examples

Example #1: Sample Usage
region r = RegionCircle(Point(50, 50), 30);
// A region circle around point (50, 50) of 30 radius.
Example #2: Units Around
unitgroup UnitsAround(unit u, fixed radius) {
  return UnitGroup(null, c_playerAny, 
    RegionCircle(UnitGetPosition(u), radius), null, 0);
}
Example #3: Empty region
region r = RegionCircle(null, 0);
// An empty region
  • radius.jpg

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

Facts

Date created
Mar 12, 2010
Last updated
Mar 13, 2010

Author