I am ray casting when I press F from my player character, and hitting other pawns (Players). I am trying to get access to their player state to get their health values that are stored there.
I may be going about this wrong, but player state is where I need to store player variables where they will be safe from hacking, correct?
I did a test with storing health in the character, and that works, as it shows correctly when the character takes damage.
Here is what my player state casting looks like, and I tried a few other ways, but they didn’t work either.
I have player state in game mode correct also.
Thank you to whom ever can help!