WoW:API ShowHelm: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(→‎Arguments: also accepts zero)
m (Move page script moved page API ShowHelm to API ShowHelm without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wowapi}}
Enables or disables display of your helm.
Enables or disables display of your helm.


Line 7: Line 8:
:(flag)
:(flag)


:;flag : Boolean - true, helm is shown.  false, helm is not shown. Also accepts 0 as false [http://forums.worldofwarcraft.com/thread.html?topicId=62049109&postId=625232451&sid=1#7].
:;flag : [[Boolean]] - true, helm is shown.  false or nil, helm is not shown.


----
----
;''Example''
;''Example''
  /script if not ShowHelm('true') then ShowHelm('false') else ShowHelm('true') end;
  /run ShowHelm(not ShowingHelm())


;''Result''
;''Result''
Toggles displaying your helm.
Toggles displaying your helm.
----
{{Stub/API}}

Latest revision as of 04:47, 15 August 2023

WoW API < ShowHelm

Enables or disables display of your helm.

ShowHelm(flag);

Parameters[edit]

Arguments[edit]

(flag)
flag
Boolean - true, helm is shown. false or nil, helm is not shown.

Example
/run ShowHelm(not ShowingHelm())
Result

Toggles displaying your helm.