WoW:API UnitIsPVP: Difference between revisions
Jump to navigation
Jump to search
UnitIsPVP - Documentation by MadJester
m (Formatting (based on UnitClassification)) |
(upgraded deprecated template) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
<center>'''UnitIsPVP''' - ''Documentation by MadJester''</center> | <center>'''UnitIsPVP''' - ''Documentation by MadJester''</center> | ||
Line 23: | Line 24: | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
Revision as of 18:13, 6 January 2007
Checks to see if a unit is flagged for PvP or not.
local ispvp = UnitIsPVP(unit);
- Arguments
- unit (UnitID)
- the unit name (e.g., "target")
- Returns
- ispvp
- 1 if the unit is flagged for PvP, nil otherwise.
- Example
if (UnitIsPVP("target")) then -- Target is flagged for PvP end