|
Post by ejlnmusic on Jun 15, 2018 21:27:18 GMT
Hi, is there a way to disable blocking while jumping. Scenario: I am blocking (raised shield) and then press jump (block is still pressed) it jumps but upper body is still holding raised shield (looks funny, but not what is needed here :D ). So bacically all work if I release the blocking but want it to be turned off automagically while jumping or at least not consider using upper body while jumping...
Any advice much appreciated, Alen
|
|
|
Post by uberwiggett on Jun 16, 2018 0:20:29 GMT
Yes, have a look at the controller script that handles blocking, and add in an isgrounded check. It might already be there in which case it's only checking when triggered and not when jumping. If that's the case you might be able to amend the jump function to change the state of blocking to stop it.
|
|
|
Post by ejlnmusic on Jun 16, 2018 12:53:15 GMT
Yes, thanks..I am able to turn block off in Jump() with -> animator.SetLayerWeight(3, 0F); and than used coroutine to put it back on
Alen
|
|