3 [
Attribute(
"true", UIWidgets.CheckBox,
"When true, bipod will be unfolded, otherwise it will be folded")]
4 protected bool m_bUnfoldBipod;
7 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
9 ChimeraCharacter character = ChimeraCharacter.Cast(owner.GetControlledEntity());
11 return ENodeResult.FAIL;
13 CharacterControllerComponent controller = character.GetCharacterController();
15 return ENodeResult.FAIL;
17 BaseWeaponManagerComponent weaponManager = controller.GetWeaponManagerComponent();
19 return ENodeResult.FAIL;
22 if (!weapon || !weapon.HasBipod())
23 return ENodeResult.FAIL;
25 weapon.SetBipod(m_bUnfoldBipod);
26 return ENodeResult.SUCCESS;
30 override bool VisibleInPalette() {
return true; }
33 override string GetOnHoverDescription() {
return "Unfolds or folds a bipon on current weapon";}