WoW:API UnitInParty: Difference between revisions
Jump to navigation
Jump to search
m (→Details) |
m (Made an error of asumption.) |
||
| Line 28: | Line 28: | ||
<!-- Details not appropriate for the main description can go here. | <!-- Details not appropriate for the main description can go here. | ||
REMOVE the section if you're just going to restate the intro line! --> | REMOVE the section if you're just going to restate the intro line! --> | ||
: Pets are not considered to be part of your party. | : Pets are not considered to be part of your party. | ||
: UnitInParty("player") should return false. (since patch 1.11.2, always returned 1 before) | : UnitInParty("player") should return false. (since patch 1.11.2, always returned 1 before) | ||
: '''Bug:''' As of 1.11.2(5464), this function returns nil for UnitInParty("player"), possibly due to the function being defined both as a C and LUA function for reasons unknown. | : '''Bug:''' As of 1.11.2(5464), this function returns nil for UnitInParty("player"), possibly due to the function being defined both as a C and LUA function for reasons unknown. | ||
Revision as of 05:09, 7 December 2006
← WoW API < UnitInParty
Returns 1 if the unit is in your party, nil otherwise.
isTrue = UnitInParty("arg1")
Parameters
Arguments
- arg1
- String - Unit who should be checked
Returns
- isTrue
- 1 or nil
Example
local TargetInParty = UnitInParty("target")
Result
TargetInParty = 1 - If your target is in your party TargetInParty = nil - If your target is not in your party
Details
- Pets are not considered to be part of your party.
- UnitInParty("player") should return false. (since patch 1.11.2, always returned 1 before)
- Bug: As of 1.11.2(5464), this function returns nil for UnitInParty("player"), possibly due to the function being defined both as a C and LUA function for reasons unknown.