1

Topic: Clean character's input buffer

Hello UFE community!

I've added a specific action to the FuzzyAI class. Under some certain conditions it pushes the input for the predefined move until it is executed. Now I would like AI to cancel this when character gets a hit. In the RuleBasedAI class i've subscribed to the UFE.OnHit event and added the following line of code to the handler method:

    private void UFE_OnHit(HitBox strokehitbox, MoveInfo move, CharacterInfo characterInfo)
    {
        _override = null;
        _base.inputBuffer.Clear();
    }

where _override is my choosen AIMovementInfo to override the AI decision. But when the character getting a hit and falls down, he excutes that move. Looks like previously sent inputs are used to cast the move after standup. Where are this buffer stored and how to clean it up?

Share

Thumbs up +1 Thumbs down