DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnInventoryExit()

void InventoryItem::OnInventoryExit ( Man player)
inlineprotected

Event called on item when it is removed from the player(Man) inventory, passes the old owner as a parameter.

См. определение в файле ItemBase.c строка 3881

3882 {
3883 PlayerBase nplayer;
3884 if (PlayerBase.CastTo(nplayer,player))
3885 {
3886 //nplayer.OnItemInventoryExit(this);
3887 nplayer.SetEnableQuickBarEntityShortcut(this,false);
3888
3889 }
3890
3891 //if (!GetGame().IsDedicatedServer())
3892 player.GetHumanInventory().ClearUserReservedLocationForContainer(this);
3893
3894
3895 if (HasEnergyManager())
3896 {
3897 GetCompEM().UpdatePlugState(); // Unplug the el. device if it's necesarry.
3898 }
3899 }