Wikia

WoWWiki

API UnitIsPVP

Talk0
98,462pages on
this wiki

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

Advertisement | Your ad here

Photos

Add a Photo
61,979photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki