WoW:API UnitIsPVP: Difference between revisions

m
No edit summary
 
Line 1: Line 1:
{{API/Uncategorized}}
<center>'''UnitIsPVP''' - ''Documentation by MadJester''</center>
 
'''Checks to see if a unit is flagged for PvP or not.'''
UnitIsPVP("unit")
 
== Parameters ==
=== Arguments ===
 
target, player_name
 
=== Returns ===
 
Elsewhere it had been said to return a True or False , to be correct it will return 1 or nothing.
 
=== Examples ===
 
Example of correct use:
if(UnitIsPVP("target"))then
 
Example of incorrect use:
if(UnitIsPVP("target")=="true")then
if(UnitIsPVP("target")=="1")then
----
__NOTOC__
{{Template:WoW API}}
Anonymous user