hello can someone please help me with this casting
I created multiple actors each one represent a weapon, and I added to each actor different mesh and because weapons have different sizes , the length of the blade where I want to trace the Collision during attack is different.
after picking up the weapon it is stored in an array and the player can’t change the weapon pressing c key then an instant of the weapon will be placed in the socket in the right hand.
during the attack animation I want to trace the Collision depending on the weapon that I’m using, therefore I need to cast to the weapon to get the start and end tracing arrows from the weapon actor.
I understand that when casting I need to specify which instant I am casting to, how can I tell the blueprint that I want the instant that is stored in the right hand socket.
note : I tried creating an object in the third character blueprint that store the same actor that is in the right hand socket and I tried pluging it as an object for the casting but it did not work.
additional questions
is this way in general good or is there another more efficient way?
is it possible to create a collision box inside the weapon actor and use it for tracing during the attack?