WoW:API TargetUnitsPet: Difference between revisions
Jump to navigation
Jump to search
(use removedapi template) |
m ({{wowapi}}) |
||
Line 1: | Line 1: | ||
{{ | {{wowapi}} | ||
{{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. | |||
TargetUnitsPet("unit"); | TargetUnitsPet("unit"); | ||
---- | ---- | ||
;''Arguments'' | ;''Arguments'' | ||
: | : | ||
:;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 32: | Line 29: | ||
TargetUnit("party1"); | TargetUnit("party1"); | ||
end; | end; | ||
Revision as of 14:56, 18 June 2006
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? -- Goldark 12:30, 21 Dec 2004 (EST)
- 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;