Lore archive · Warcraft Wiki, 2023 dump
API TargetUnitsPet
Last wiki revision 2020-01-08
Targets the specified unit's pet. If no such pet exists, the target will remain unchanged. TargetUnitsPet("unit");
- Arguments
- unit : String - The UnitId of the owner of the pet you wish to target.
- Returns
- Unknown: presumably no return value, possibly some status to indicate if success/failure?
- Result
- The specified unit's pet becomes the active target, if such a pet exists. Otherwise, no change to target is made.
if ( UnitIsUnit("party1", "target") ) then TargetUnitsPet("party1"); else TargetUnit("party1"); end;
- Example
Source
https://warcraft.wiki.gg/wiki/API_TargetUnitsPet · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.