89 {
91
92 if (action_data.m_MainItem.IsInherited(VehicleBattery))
93 {
94
95 MetalWire metalWire = MetalWire.Cast(action_data.m_MainItem.GetCompEM().GetPluggedDevice());
96 if (metalWire)
97 targetIB.GetCompEM().PlugThisInto(metalWire);
98 }
99 else
100 {
101
102 targetIB.GetCompEM().PlugThisInto(action_data.m_MainItem);
103 }
104
105 Spotlight spotlight;
106 if (Spotlight.CastTo(spotlight, targetIB))
107 spotlight.Unfold();
108
109 targetIB.GetInventory().TakeEntityAsAttachment(
InventoryMode.LOCAL, action_data.m_MainItem);
110 action_data.m_Player.ServerDropEntity(action_data.m_MainItem);
111 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
class GP5GasMask extends MaskBase ItemBase