m
Move page script moved page API TargetUnitsPet to WoW:API TargetUnitsPet without leaving a redirect
m (Recategorized) |
m (Move page script moved page API TargetUnitsPet to WoW:API TargetUnitsPet without leaving a redirect) |
||
| (7 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi|removed=1.6.0|replace=Use [[API TargetUnit|TargetUnit("unitpet")]] instead}} | |||
Targets the specified unit's pet. If no such pet exists, the target will remain unchanged. | Targets the specified unit's pet. If no such pet exists, the target will remain unchanged. | ||
TargetUnitsPet("unit"); | |||
- | == Parameters == | ||
=== Arguments === | |||
* unit (string) - The [[API TYPE UnitId|UnitId]] of the owner of the pet you wish to target | |||
: | === Returns === | ||
: none | |||
== Example == | |||
if UnitIsUnit("party1", "target") then | |||
if | TargetUnitsPet("party1") | ||
TargetUnitsPet("party1") | |||
else | else | ||
TargetUnit("party1") | TargetUnit("party1") | ||
end | end | ||
== Details == | |||
The specified unit's pet becomes the active target, if such a pet exists. Otherwise, no change to target is made. Presumably no return value, possibly some status to indicate if success/failure? | |||