20 {
21 Object targetObject = target.GetObject();
22 if ( targetObject && targetObject.CanUseConstruction() )
23 {
24 Fence fence = Fence.Cast( targetObject );
25
26 if ( fence && fence.CanCloseFence() )
27 {
28 array<string> selections = new array<string>;
29 targetObject.GetActionComponentNameList(target.GetComponentIndex(), selections);
30
31 for ( int i = 0; i < selections.Count(); i++ )
32 {
34 return true;
35 }
36 }
37 }
38
39 return false;
40 }
const string SELECTION_INTERACT