7 override bool IsInstant()
12 override bool HasTarget()
17 override bool UseMainItem()
22 override void CreateConditionComponents()
28 override typename GetInputType()
35 Headtorch_ColorBase headtorch;
36 headtorch = Headtorch_ColorBase.Cast(target.GetObject());
40 if ( headtorch.HasEnergyManager() && headtorch.GetCompEM().CanSwitchOn() && headtorch.GetCompEM().CanWork() )
50 super.Start( action_data );
52 Headtorch_ColorBase headtorch;
53 headtorch = Headtorch_ColorBase.Cast(action_data.m_Target.GetObject());
54 if ( headtorch.HasEnergyManager() )
56 if ( headtorch.GetCompEM().CanWork() )
58 headtorch.GetCompEM().SwitchOn();