3922 {
3924
3925 if (GetInventory())
3926 GetInventory().LockInventory(LOCK_FROM_SCRIPT);
3927
3929
3931 EntityAI itemOnHead = FindAttachmentBySlotName(
"Headgear");
3932
3933 if (itemInHand && itemInHand.GetCompEM())
3934 itemInHand.GetCompEM().SwitchOff();
3935
3937
3938 if (itemOnHead && itemOnHead.GetCompEM())
3939 itemOnHead.GetCompEM().SwitchOff();
3940
3942 }
class GP5GasMask extends MaskBase ItemBase
proto native Mission GetMission()
void CloseInventoryMenu()
int m_AnimCommandStarting
ItemBase GetItemInHands()
void TryHideItemInHands(bool hide, bool force=false)
tries to hide item in player's hands, some exceptions for various movement states
void AddActiveInputExcludes(array< string > excludes)
proto native CGame GetGame()