I need some help. How can I attach a pawn to a character with the help of „Get Component by Class“? How can I best implement this.
Thanks in advance!
I need some help. How can I attach a pawn to a character with the help of „Get Component by Class“? How can I best implement this.
Thanks in advance!
This makes little sense.
But you want to use a node to find Components? Perhaps the goal is to attach an actor to an actor instead? There’s a node for that. I guess you could find the root component and attach that, but then you do not need to find anything by class…
You best clarify what is really needed.
How can I best implement this.
Implement what exactly?
I want to control character and pawn at the same time, for example push a box (Pawn) with a character. If the push is active, it should be switched to pawn control, but the character should still be attached to the pawn.
I’ll admit this is confusing.
push a box (Pawn) with a character.
The character is pushing a box, sure!
the character should still be attached
to the pawn.
The character is attached to the box they’re pushing, not the other way round?! We’re pushing the box but we’re controlling the box? visible confusion
It may be fine, ofc, I just don’t understand the intent.
Anyway, attachment should work. You’d use Get Component by Class if you did not know anything about the target actor class (you do) or you did not care which particular component you need (you do).