Pass variables back and forth between 2 classes?

Just to throw in another idea: your weapon does have a “origin point” by default. You can set it so it ligns up with the handle of the weapon. There is a node called Attach to Actor Node. This will automatically track the object (which can be chosen dynamically) to its specific point on the Player (this specific place is most often a Socket. There are Sprite Sockets that are made for that purpose.

2 Likes