10 {
11 Object target_object = target.GetObject();
12
13 if ( player && target_object )
14 {
16 string selection = target_object.GetActionComponentName( target.GetComponentIndex() );
17
18
19 if ( target_entity && target_entity.GetInventory() && target_entity.GetInventory().AttachmentCount() > 0 && selection == "power_source" )
20 {
21 return true;
22 }
23 }
24
25 return false;
26 }