Hy there!
Recently I have constructed a ship and now I want to add modules to it. The problem with which I confrunt now is the fact that I am not able/didn’t find a solution for that. Those modules are in fact blueprints (used for/as weapons) , but there is no way attaching those… So my question is: How I attach a BP(weapon) to a Pawn?
Kind regards, Alex.
There should be no problem adding actors to your blueprint class, but can you show us some screenshots?
You usually attach separate actors to the Pawn. You can attach an actor to another actor or an actor to another component. You can also identify a socket.
If you want it always attached and move it around in the blueprint viewport you can also add it as a child actor component.
Thanks so it seems that I can bring BP through child actor, but I want it to be separately since I want to change the weapon in game. I have tried also with socket but I can’t get it work. It shows me parent socket none, but the socket is created and I did alocate a mesh to it. On top of that I need it to be a blueprint for extra functions.
There should be no problem changing the weapon blueprint even if it is attached. If you use a socket or not. You just have to detach the actor and attach the new weapon actor OR attach a default holding actor that handles the weapons inside it.
So I can change the BP anytime in child actor and the position will remain the same or I will have to modify it all the time?
It should stay exactly the same. If you want to hold it I would use a socket. Just remember to attach it to the socket again when changing it.
Thanks man! That helped me.
If it works please mark his answer as correct. Good luck onwards.