Changing a variable via casting

Thanks Ninjin ive watched the casting section of the video now-i think i understand it a lot more now- however im still confused why this isnt working ive changed what im casting to as i thought at first the issue might be hierarchical but it doesnt seem to work.

do you have any idea how to get my bp to work?

Hi, im trying to change my skeletal mesh variable every time the character picks a weapon up, however im having a little trouble with casting- and yes i am sure its the changing the variable cross blueprint thats causing the issue.

Thanks in Advance

Exactly my thought, the result from the get actors of class should already be the correct class.

The note says "info ‘item’ is already a ‘player character’, you don’t need to cast to player character
im very new to casting and still having a hard time getting it to work and understand it

You should totally check out this tutorial about blueprint communication
You don’t need to watch the whole 2 hours for now, but around 10min he also explains what and how casting works. Make sure to understand these basics and maybe you already know by then what might be wrong with your code. If not, feel free to ask more questions in here! <3

Also, you can just get the player character with “Get Player Character” instead of using GetAllActorsOfClass.