WoW API: SetPVP

From AddOn Studio
Revision as of 02:52, 27 November 2007 by WoWWiki>TCW (New page: {{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> Used to toggle PVP on or Off. <!-- List return values and arguments ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < SetPVP

Used to toggle PVP on or Off.


Arguments

(arg1)
arg1
0 or 1; 0 Toggles PVP off, 1 Toggles PVP on.


Example

/script SetPVP(1); //Toggles PVP On in friendly zones.
/script SetPVP(0); //Toggles PVP Off in friendly zones.