WoW API: TogglePVP

From AddOn Studio
Jump to navigation Jump to search

WoW API < TogglePVP

Toggles PvP setting on or off.

TogglePVP();

Parameters

Arguments

none

Returns

nil

Example

This asks whether the variable msg is equal to true, then toggles PvP.
if (msg == true) then
  TogglePVP();
end