6 override string GetOnHoverDescription() {
return "Calls CharacterControllerComponent.TryPlayItemGesture"; }
7 override static bool VisibleInPalette() {
return true; }
9 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
11 IEntity ownerEnt = owner.GetControlledEntity();
13 return ENodeResult.FAIL;
15 CharacterControllerComponent characterControl = CharacterControllerComponent.Cast(ownerEnt.FindComponent(CharacterControllerComponent));
16 if (!characterControl)
17 return ENodeResult.FAIL;
19 characterControl.TryPlayItemGesture(m_eGesture);
20 return ENodeResult.SUCCESS;