Topic: Detecting if character blocks

How can I detect if a character blocks a move?

I want to dosomething similar to the OnHit() method. Something like OnBlock(MoveInfo move, CharacterInfo hitter)

Share

Thumbs up Thumbs down

Re: Detecting if character blocks

You would need Source version to create a new UFE Event for it. 

Have a look at how the UFE.OnHit() is done, you should be able to work out how to create UFE.OnBlock().

Share

Thumbs up Thumbs down

Re: Detecting if character blocks

Guess I should have been more specific.

I already have the source version. What I want to know is where in the source code does UFE detect if a move is blocked? So I can insert my own code there.

Share

Thumbs up Thumbs down

Re: Detecting if character blocks

This seems like a useful feature to add. I'll move this topic to the suggestion forum and add it to the upcoming features.

Alternatively you can also look at how Chain Moves -> Counter Move work. Its not going to solve the current issue but it should open some options for you.

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.