Jump to content

Recommended Posts

Hi there!

Is it possible to make a character do an in-game emote on a certain action? Specifically, I would like him to do an angry emote whenever he gets hit. I'm a bit afraid that he might get stunlocked by bees or other similar small creatures though.

Is there a elegant way to implement such thing?

Thanks in advance!

Edited by BillTheCipher

"emoteXL_angry" animation name,
just do:
 

inst.AnimState:PlayAnimation("anim_name")

--inst.AnimState:PlayAnimation("anim_name", true) -- true for looping

This doesn't put him in any state so it shouldn't cause stunlock

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...