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

(Difference between revisions)
Jump to: navigation, search
m
 
Line 4: Line 4:
| cat =
| cat =
| syntax = AreaOrRegionUID; UIDType; SubTypeUID
| syntax = 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), because doing so will also update the currently selected unit.
+
| 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.
| example =  
| example =  
| example-description =  
| example-description =  

Latest revision as of 11:31, 28 April 2010

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