Flickering19966@legacy41540688 (talk | contribs) m (Consistency formatting, added category) |
VoidvectorBot@legacy41580961 (talk | contribs) m (Remove singatures made using ~ in main namespace) |
||
(7 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{wowapi}} |
||
− | <center>'''TargetUnitsPet''' </center> |
||
+ | {{removedapi|1.6.0|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. |
||
⚫ | |||
---- |
---- |
||
;''Arguments'' |
;''Arguments'' |
||
+ | : |
||
− | :("unit") |
||
:;unit : String - The [[API TYPE UnitId|UnitId]] of the owner of the pet you wish to target. |
:;unit : String - The [[API TYPE UnitId|UnitId]] of the owner of the pet you wish to target. |
||
Line 16: | Line 15: | ||
;''Returns'' |
;''Returns'' |
||
− | : ''Unknown: presumably no return value, possibly some status to indicate if success/failure? |
+ | : ''Unknown: presumably no return value, possibly some status to indicate if success/failure?'' |
---- |
---- |
||
Line 30: | Line 29: | ||
TargetUnit("party1"); |
TargetUnit("party1"); |
||
end; |
end; |
||
− | |||
− | ---- |
||
− | {{Template:WoW API}} |
||
− | [[Category:API Functions|TargetUnitsPet]] |
Revision as of 06:21, 10 February 2007
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This is no longer a part of the World of Warcraft API.
|
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.
- Example
if ( UnitIsUnit("party1", "target") ) then TargetUnitsPet("party1"); else TargetUnit("party1"); end;