DayZ 1.27
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 строка 3811

3812 {
3813 PlayerBase nplayer;
3814 if (PlayerBase.CastTo(nplayer,player))
3815 {
3816 //nplayer.OnItemInventoryExit(this);
3817 nplayer.SetEnableQuickBarEntityShortcut(this,false);
3818
3819 }
3820
3821 //if (!GetGame().IsDedicatedServer())
3822 player.GetHumanInventory().ClearUserReservedLocationForContainer(this);
3823
3824
3825 if (HasEnergyManager())
3826 {
3827 GetCompEM().UpdatePlugState(); // Unplug the el. device if it's necesarry.
3828 }
3829 }