WoW:API ShowHelm: Difference between revisions
Jump to navigation
Jump to search
(→Arguments: also accepts zero) |
(Updated the flag to link to Boolean, fixed code example, and removed broken link to the old forums.) |
||
Line 7: | Line 7: | ||
:(flag) | :(flag) | ||
:;flag : Boolean - true, helm is shown. false, helm is not shown | :;flag : [[Boolean]] - true, helm is shown. false or nil, helm is not shown. | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
/script if not ShowHelm( | /script if not ShowHelm(true) then ShowHelm(false) else ShowHelm(true) end; | ||
;''Result'' | ;''Result'' | ||
Toggles displaying your helm. | Toggles displaying your helm. | ||
Revision as of 14:48, 8 June 2007
Enables or disables display of your helm.
ShowHelm(flag);
Parameters
Arguments
- (flag)
- flag
- Boolean - true, helm is shown. false or nil, helm is not shown.
- Example
/script if not ShowHelm(true) then ShowHelm(false) else ShowHelm(true) end;
- Result
Toggles displaying your helm.