I have a weapon BP and I’m trying to cast with my hero and don’t know what object to use. Any idea? Sorry for the bad english.
Here is what I use to get a reference to the Parent of my child NPC’s (so in turn all of the children too) in my character blueprint.
It’s been a while since I set this up but it should work as a macro in any blueprint.
Make a Macro Library (not necessary but useful if you are having to use this often) and on the right column add a new macro called something like “GetRef:WeaponRifle” then create the macro as follows, selecting your class in the ‘Get All Actors Of Class’ node as “WeaponRifle”.
Hi, thanks for the quick answer. It’s a third person game and I have 2 guns attached to the player. SelectRifle is to equip IdleRifle (change to Rifle, attach to his hand). I can do this with level blueprint using WeaponRifle reference, is very simple, but want to cast in my character so I can use this in any level. I don’t try EventDispatcher because I don’t know how to use, I will try as soon I understand how to use. Thanks for the tip.
Okay thanks for some more details. Answer added to post above.
Great - glad to help out once in a while when I can.
Good luck on your project