Soldier.wearHeadgear ▲ 110

Available from Easy Red 2 2.1.1

Puts a headgear on the soldier, replacing the one they are wearing: the new one goes into the inventory and on the head, the old one is removed from the inventory. Works with vanilla and mod headgear ids, both listed in the Id tables. The id must be a headgear and not a DLC item, otherwise nothing happens. The change is applied asynchronously, so do not expect it on the very next line.


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1stringId of the headgear to put on, vanilla or from a mod.

Examples

No examples available.


Back to Scripting API