Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIPlayItemGesture.c
Go to the documentation of this file.
1 class SCR_AIPlayItemGesture : AITaskScripted
2 {
3  [Attribute("", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EItemGesture) )]
4  protected EItemGesture m_eGesture;
5 
6  override string GetOnHoverDescription() { return "Calls CharacterControllerComponent.TryPlayItemGesture"; }
7  override static bool VisibleInPalette() { return true; }
8 
9  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
10  {
11  IEntity ownerEnt = owner.GetControlledEntity();
12  if (!ownerEnt)
13  return ENodeResult.FAIL;
14 
15  CharacterControllerComponent characterControl = CharacterControllerComponent.Cast(ownerEnt.FindComponent(CharacterControllerComponent));
16  if (!characterControl)
17  return ENodeResult.FAIL;
18 
19  characterControl.TryPlayItemGesture(m_eGesture);
20  return ENodeResult.SUCCESS;
21  }
22 }
Attribute
typedef Attribute
Post-process effect of scripted camera.
EItemGesture
EItemGesture
Definition: EItemGesture.c:12
SCR_AIPlayItemGesture
Definition: SCR_AIPlayItemGesture.c:1