7 override bool IsInstant()
12 override bool HasTarget()
17 override bool UseMainItem()
22 override void CreateConditionComponents()
28 override typename GetInputType()
36 Mich2001Helmet helmet;
37 helmet = Mich2001Helmet.Cast(target.GetObject());
40 light =
Switchable_Base.Cast(helmet.FindAttachmentBySlotName(
"helmetFlashlight"));
44 if ( light.HasEnergyManager() && light.GetCompEM().CanSwitchOn() && light.GetCompEM().CanWork() )
54 super.Start( action_data );
57 Mich2001Helmet helmet;
58 helmet = Mich2001Helmet.Cast(action_data.m_Target.GetObject());
59 light =
Switchable_Base.Cast(helmet.FindAttachmentBySlotName(
"helmetFlashlight"));
61 if ( light.HasEnergyManager() )
63 if ( light.GetCompEM().CanWork() )
65 light.GetCompEM().SwitchOn();