9 {
10 Object targetObject = target.GetObject();
12
13 Spotlight s = Spotlight.Cast(target_IB);
14
15 if (s && s.IsFolded())
16 return false;
17
18 int component_id = target.GetComponentIndex();
19 string selection = targetObject.GetActionComponentName(component_id);
20
21 if ( selection == Spotlight.SEL_REFLECTOR_COMP_U && target_IB.HasEnergyManager() && target_IB.GetCompEM().CanSwitchOn() )
22 {
23 return true;
24 }
25
26 return false;
27 }
class GP5GasMask extends MaskBase ItemBase