47 {
49 if (targetObject)
50 {
52 string selection = targetObject.GetActionComponentName(action_data.
m_Target.GetComponentIndex());
53
54 EntityAI device =
EntityAI.Cast(targetEntity.GetCompEM().GetPlugOwner(selection));
55 if (device)
56 device.GetCompEM().UnplugThis();
57
58
59 if (action_data.
m_Player.IsPlacingServer())
60 action_data.
m_Player.PlacingCancelServer();
61 }
62 }
ref ActionTarget m_Target