Lucky44
To clarify, this command effectively DELETES the headgear. It does not simply remove it from unit's head and move it into inventory.
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Removes headgear from a unit. If unit has no headgear command quietly fails.
removeHeadgear unit
Parameters:
unit: ObjectReturns: Nothing
removeHeadgear player;
To clarify, this command effectively DELETES the headgear. It does not simply remove it from unit's head and move it into inventory.