Skip to content

Commit

Permalink
fix(mmextensions): updating the ai aim
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lybyte committed Dec 28, 2024
1 parent c9beebe commit e737603
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/mmextensions/mmextensions/Ai/AiAllyBrain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected override void Awake()
handleWeapon = gameObject.MMGetOrAddComponent<CharacterHandleWeapon>();
handleWeapon.InitialWeapon = initialWeapon;
handleWeapon.ForceWeaponAimControl = true;
handleWeapon.ForcedWeaponAimControl = WeaponAim.AimControls.Off;
handleWeapon.ForcedWeaponAimControl = WeaponAim.AimControls.Script;
SetupDecisionsAndActions();
SetupAllyStates();
base.Awake();
Expand Down Expand Up @@ -174,10 +174,10 @@ private AIState CreateAttackState()
AIState attackState = new AIState();
attackState.StateName = "Attack";

attackState.Actions = new AIActionsList()
{
gameObject.MMGetOrAddComponent<AIActionShoot2D>()
};
AIActionShoot2D aIActionShoot2D = gameObject.MMGetOrAddComponent<AIActionShoot2D>();
aIActionShoot2D.AimAtTarget = true;

attackState.Actions = new AIActionsList() { aIActionShoot2D };

attackState.Transitions = new AITransitionsList
{
Expand Down

0 comments on commit e737603

Please sign in to comment.