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

◆ OnInventoryEnter() [4/4]

override void ItemBase::OnInventoryEnter ( Man player)
inlineprivate

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

73 {
74 super.OnInventoryEnter( player );
75
76 PlayerBase player_PB;
77 Class.CastTo( player_PB, player );
78 if ( player_PB.GetItemInHands() == this && GetCompEM().IsPlugged() )
79 {
80 return;
81 }
82
83 //Only unplug if we are "powering" something
84 ItemBase powered_device = ItemBase.Cast( GetCompEM().GetPluggedDevice() );
85 if ( powered_device )
86 {
87 GetCompEM().UnplugAllDevices();
88
89 if ( !player_PB.IsPlacingLocal() )
90 {
91 GetCompEM().UnplugThis();
92 }
93 }
94 }
class GP5GasMask extends MaskBase ItemBase

Перекрестные ссылки Class::CastTo().