47 {
50
51 if ( targetParent && targetParent.IsInherited(TentBase) )
52 {
53 array<string> selections = new array<string>;
54 targetObject.GetActionComponentNameList(action_data.
m_Target.GetComponentIndex(), selections);
55
56 TentBase tent = TentBase.Cast( targetParent );
57 for ( int s = 0; s < selections.Count(); s++)
58 {
59 if ( tent.CanToggleAnimations(selections[s]) )
60 {
61 tent.ToggleAnimation( selections[s] );
62 }
63 }
64
65
66 tent.SetAffectPathgraph( true, false );
67
68 if ( tent.CanAffectPathgraph() )
69 {
70
71 tent.RegenerateNavmesh();
72 }
73 }
74 }
ref ActionTarget m_Target