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() )
class ActionTargets ActionTarget
ref ActionTarget m_Target
override void OnExecuteServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void ActionTurnOnSpotlight()
proto native void SwitchOn(bool onOff)
Some inventoryItem devices can be switched on/off (radios, transmitters)