Topic: Keep CPU Character(Fuzzy AI) to in wait/idle status

Hi, I have a question about Fuzzy AI, I have a game two CPU characters are fighting to each other.
During the game, If the user press the button I want the Character to play the special move.
I using Castmove to start the special move. it works fine, However before I start special move I want to the character to wait in Idle status for few seconds.  How do I do that?

I tried this to keep character in idle.

UFE.GetPlayer1ControlsScript().Physics.ForceGrounded();
UFE.GetPlayer1ControlsScript().MoveSet.PlayBasicMove(UFE.GetPlayer1ControlsScript().MoveSet.basicMoves.idle,UFE.GetPlayer1ControlsScript().MoveSet.basicMoves.idle.name,0);

but it will over write by AI really quick.....

please let me know how do I do this.
Thank you

Share

Thumbs up Thumbs down

2

Re: Keep CPU Character(Fuzzy AI) to in wait/idle status

I don't see any built in ability to force Fuzzy AI doing some concrete move or doing just nothing. You could add

public bool MuteInputs {get; set;}

property into RuleBasedAI class and then make use of it in the ReadInput method by adding the following code before it's first line.

if(MuteInputs) return InputEvents.Default; 

Hope this will help.

Share

Thumbs up Thumbs down