Hey, so i made a weapon system where all my guns are an actor, and then i have a ChildActor component on my PlayerCharacter. and it works great. The problems arrive when i try to pickup a weapon. what i do is i lincetrace, and then set the ChildActor as whatever i hit like this:
So this blueprint actuly do sets my childActor to the new actor, The new actors animation blueprint works and it is attached to my camera as it should. But i cannot interact with the AnimBP
By shooting and reloading and stuff i cast from the PlayerController to the weapons ParentClass “WeaponActor”
And then the AnimBP casts to it aswell to recive this information like this:
But the cast from the animationBP to WeaponActor fails.
The only thing i can think of is where i get the Reference from: “GetOwningActor” but that is the only blueprint node that seems to work.
I cant think of anything, is there something i missing? why is the actor no longer referenced from the GetOwningActor after i have set it during gameplay?
Just to make sure i have tried swaping weapons in the ChildActor befour i start the game and that work, its when i set it in-game it doesnt work. Please Help! Thanks!