WoW:API TogglePVP: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API TogglePVP to API TogglePVP without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:
   TogglePVP();
   TogglePVP();
  end
  end
--[[User:Bull3t|Bull3t]] 11:50, 27 September 2006 (EDT)

Latest revision as of 04:47, 15 August 2023

WoW API < TogglePVP

Toggles PvP setting on or off.

TogglePVP();

Parameters[edit]

Arguments[edit]

none

Returns[edit]

nil

Example[edit]

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