Shield Issues

Tvtig

New member
Hi There,

I am using UCC version 3.1.3

When blocking with the shield, even in the demo scene, an error is thrown saying the impact context is null and no damage is blocked (I set the absorption to 1, so presumable all damage should be blocked). Please see my reference video.


Outside of the demo scene I added an enemy and a shield to my player, the blocking does seem to work, however. This damage output is scaled down each time the character blocks an attack using the shield and the reduced damage value persists even when the character is not using the shield. Please see the image with a debug log added to the character health scripts OnDamage function displaying the damageData.Amount value:

1732520961799.png

The enemy character has a basic sword setup with a simple damage module. And the player has a simple shield setup with the shield action.

I did come across another issue posted on the forum here https://www.opsive.com/forum/index....ks-attacks-even-tho-weapon-is-holstered.9172/, but when disabling the options mentioned there, I get the error mentioned firstly in this post.

Please advise.
 
I am having trouble reproducing this. It looks like you made some changes since the sword is different. If you import into a fresh project are you able to reproduce the error? I've tried to reproduce it with both aiming and non-aiming, and have the enemy attack both the shield and Atlas itself.
 
Back
Top