m
→Examples
No edit summary |
m (→Examples) |
||
| Line 1: | Line 1: | ||
{{API | <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}} | |||