So first a bit of context - I’m trying to create a movable modular ship that a player can expand by adding modules to the ends mid-flight. I’m just focusing on a linear expansion for now, although the end goal is some radial expansion, and the ability to add/remove modules part way along a chain of modules. I’m deliberately trying not to get too far ahead of myself, however I think it’s safe to assume these modules will need some sort of contained functionality, so they will need to be blueprints instead of just static meshes.
Now, the problem I’ve got at the moment is that I’m trying to call the location of a blueprint child actor relative to it’s parent, however I can’t get it to print anything other than 0,0,0 using this function (pictured) and cannot for the life of me figure out an alternative way. It does however seem to work with a static mesh. I’m pretty new to blueprints and scripting in general and working hard to solve as many problems myself as I can, but I feel that maybe I’m fundamentally missing something about how components work…
This is my graph:
This is the location printed to screen of both the static mesh component, which seems to work, and the child actor BP, which doesn’t.
Finally, this is the component name printed to screen and is I assume indicative of what I’m doing wrong, but I’ve hit a wall in my understanding. It looks to me like the static mesh component contains all the info of a hierarchy, but the bp doesn’t.
Anyway like I say, I’m pretty new to this so I apologise if I’m doing something really dumb… Any help would be very much appreciated.