WoW:API TargetUnitsPet: Difference between revisions
Jump to navigation
Jump to search
m ({{wowapi}}) |
m (Remove singatures made using ~ in main namespace) |
||
Line 15: | 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?'' | ||
---- | ---- |
Revision as of 06:21, 10 February 2007
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;