Hey guys !
Today I am revisiting my melee block system and just realised there was a problem. Basically, my block system works this way: you have a box in front of your character and when the input defense is pressed, the collision response to channel is set to block. Now for my attack system I am using the apply damage function and as I did a line trace system, I use the break hit result to determine the hit. However I have to plug my damage to the hit actor node and the problem with that is that even if the line hits the box it will apply damage to the character. Here is a picture of my setup.
If you want to not ever hurt yourself, even when hitting the box make sure to tick “ignore self” in the trace and do a check that (hitactor != self) branch before doing damage.
Ok so let me be more precise. First of all the game is multiplayer so i need to hit other players with that lign (wich works).Now I want it so that if the box is blocking the ligns , it doesn’t apply damage to the player when this box is hit as the box is considered in the actor.