Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

PickUnit

From AGEWiki

Jump to: navigation, search

PickUnit

Syntax  

PickUnit = AreaOrRegionUID; UIDType; SubTypeUID

Description

Randomly pick a Unit in the defined Area or Region, then make the Group containing that Unit the active selection. Blocked regions are skipped.

It is better generally to make a selection by sub-unit (aka element) with SelectSubUnits, because doing so will also update the currently selected unit.



 

Parameters

AreaOrRegionUID

Valid Alias to search

UIDType

Area or Region defined

0 = Region
1 = Area
SubTypeUID

Limit selection to a class of Units

Integer, one of:

-1 = All
see SubType
Forums