How can you enable or disable the collision of a specific object in a viewport?

Hello everyone.
So here is my problem : when a specific key is pressed, i want a collision to be enabled on an object from my character (the sword) so that when this player is being attacked and he is in a defensive position , the attack collides with this object. Now the problem is that when i ask for the collision of the sword to be enabled , it enables the whole character’s collision…Here is a picture of my blueprint setup for this (inside the character blueprint).

Any help is appreciated :slight_smile:

hi man , in your blueprint i see that you pick up the “WeaponTest” and from it you pin out the get owner and then you set to the Whole actor the collision…
If you want to set only the weapontest collisions. you have to use ““set collision enabled”” directly from the weapontest.

Hello my friend , thanks for the answer.The problem is i can’t join directly the weapon test and the set enable collision :confused:

Darn i’m stupid thanks for the help mate

Pick your static mesh , and pin out the “set collision enabled”