15 Object targetObject = target.GetObject();
18 if ( target_IB && target_IB.HasEnergyManager() )
20 string selection = targetObject.GetActionComponentName(target.GetComponentIndex());
27 if ( selection == Spotlight.SEL_CORD_PLUGGED_U )
39 target_IB.GetCompEM().UnplugThis();
41 if ( target_IB.IsInherited(Spotlight) )
43 target_IB.HideSelection ( Spotlight.SEL_CORD_PLUGGED_U );
44 target_IB.ShowSelection ( Spotlight.SEL_CORD_FOLDED_U );
class ActionTargets ActionTarget
ref ActionTarget m_Target
override void OnExecuteServer(ActionData action_data)
override bool HasProgress()
void ActionUnplugThisByCord()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
static const string SEL_CORD_PLUGGED