Wikia

WoWWiki

Changes: API UnitIsPVP

Edit

Back to page

(upgraded deprecated template)
m
 
Line 1: Line 1:
 
{{wowapi}}
 
{{wowapi}}
<center>'''UnitIsPVP''' - ''Documentation by MadJester''</center>
 
   
 
Checks to see if a unit is flagged for PvP or not.
 
Checks to see if a unit is flagged for PvP or not.

Latest revision as of 16:33, December 4, 2007

WoW API < UnitIsPVP

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

Around Wikia's network

Random Wiki