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

ChangeUnitType

From AGEWiki

Jump to: navigation, search

ChangeUnitType

Syntax  

ChangeUnitType = <OldUnitDef>;<NewUnitDef>[;FP][;OnMap][;REGorAREA_AreaUID]

Description

Replace the "old" Unit with a "new" Unit in a specified Region or Area

Example  

ChangeUnitType = $uni_USA_Rebel0; $uni_USA_Inf0; REG $Oswego

In Region $Oswego, replace all units of uni_USA_Rebel0 with uni_USA_Inf0


 

Parameters

<OldUnitDef>

The Unit to be replaced.

<NewUnitDef>

The new Unit.

[FP]

Optional parameter: Change also the Unit in the Unit Force Pool

One of:

InFP: will change the units in force pool (not deployed)
OnMap: will change the units on map (deployed)
CopyPR: is now obsolete (always done). When a unit is changed to another, its AI pool ratio is always updated (AI preference remains the same...)
[REGorAREA_AreaUID]

Optional parameter: If REG then a valid Region Alias must be specified. If AREA then a valid Area Alias must be specified. If not specified, the currently selected Region or Alias is used.

Forums