10 Object targetObject = target.GetObject();
13 Spotlight s = Spotlight.Cast(target_IB);
15 if (s && s.IsFolded())
18 int component_id = target.GetComponentIndex();
19 string selection = targetObject.GetActionComponentName(component_id);
21 if ( selection == Spotlight.SEL_REFLECTOR_COMP_U && target_IB.HasEnergyManager() && target_IB.GetCompEM().CanSwitchOn() )
29 override void OnExecuteServer(
ActionData action_data )
31 Object targetObject = action_data.m_Target.GetObject();
35 target_EAI.GetCompEM().SwitchOn();