3909 {
3911
3912 if (GetInventory())
3913 GetInventory().LockInventory(LOCK_FROM_SCRIPT);
3914
3916
3918 EntityAI itemOnHead = FindAttachmentBySlotName(
"Headgear");
3919
3920 if (itemInHand && itemInHand.GetCompEM())
3921 itemInHand.GetCompEM().SwitchOff();
3922
3924
3925 if (itemOnHead && itemOnHead.GetCompEM())
3926 itemOnHead.GetCompEM().SwitchOff();
3927
3929 }
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()