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() )
31 Object targetObject = action_data.m_Target.GetObject();
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
void ActionInteractBase()
void ActionTurnOnSpotlight()
override void OnExecuteServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
proto native void SwitchOn(bool onOff)
Some inventoryItem devices can be switched on/off (radios, transmitters)