Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This function is restricted.
|
Targets the specified unit.
TargetUnit(unit) TargetUnit(name [, exactMatch])
Arguments[]
- unit
- string : UnitId - The unit id of the unit.
- name
- string - The name of the unit.
- exactMatch
- boolean? -
true
to check only units whose name exactly matches the name given;false
to allow partial matches.
Patch changes[]
Patch 2.0.1 (2006-12-05): Protected.