I have recently made a jump from blueprints to C++ and while my first method was successful, I hit a brick wall on something seemingly easy.
I have a simple Actor, that contains a collision volume (box) and an arrow. It also contains a simple method, that is meant to return the location of the arrow once called.
Now, my actor is shooting a trace out of his face every tick. Once they hit the HandGrabVolume, I would like to know the position of the arrow within that Actor. The problem is, I find myself unable to access that method.
Now, the code itself is already pretty messy - I don’t even check, if the hit Actor is the HandGrabVolume or not - but regardless, I cannot access that method from the Character, because the GetActor() gives me access only to the functions of AActor, not its children.
It’s probably a really basic thing, but I’ve spent this day looking at tutorials and ShooterGame and I haven’t found an example of this type of code done correctly.