With this mod you will be able to set a stun time for each weapon. After a successful attack this will play the knock back animation and stun the victim for the duration set on the weapon action.
I couldn't find a way to do this natively with UCC. This is what I came up with. If there is a better way to achieve this, please let me know.
Modification
![1715488928103.png 1715488928103.png](http://www.opsive.com/forum/data/attachments/12/12637-7c20ccf182ae5e867fe413446b719244.jpg?hash=fCDM8YKuXo)
![1715488676864.png 1715488676864.png](http://www.opsive.com/forum/data/attachments/12/12635-519647593aa6a9b3e4c65a2dc8df9b57.jpg?hash=UZZHWTqmqb)
I couldn't find a way to do this natively with UCC. This is what I came up with. If there is a better way to achieve this, please let me know.
Modification
- Add the CharacterVariableKnockBack script to your project. Make sure it exists within the Opsive.UltimateCharacterController assembly
- Add a sub-state machine to the base layer of your animation controller (See screen capture)
- Set the entry condition to Ability Change and AbilityIndex equals 13
- Exit transition should be AbilityIndex not equal to 13
- Add the ImpactKnockBack ability to the character.
- Under the Stop event, the Wait For Animation Event should be unchecked. Set the Duration to a default value.
- Add the Character Variable Knock Backaction to the generic module of the impact module group for the weapon
- Set the Stun Duration on the action
![1715488928103.png 1715488928103.png](http://www.opsive.com/forum/data/attachments/12/12637-7c20ccf182ae5e867fe413446b719244.jpg?hash=fCDM8YKuXo)
![1715488676864.png 1715488676864.png](http://www.opsive.com/forum/data/attachments/12/12635-519647593aa6a9b3e4c65a2dc8df9b57.jpg?hash=UZZHWTqmqb)
Attachments
Last edited: