WoW:API UnitIsPVP: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
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}}

Revision as of 20:48, 21 February 2006

UnitIsPVP - Documentation by MadJester

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

Template:WoW API