I’m trying to change a player’s variable based on their proximity to a world actor/s.
Actor BP: ‘EnergySource’
PlayerState variable: ‘SourceDistance’ (Float)
Below is the logic I have setup in my PlayerController class but when I launch the game, the ‘Print Text’ fires correctly but the variable doesn’t change, it simply prints the same value over and over again. It seems to be an incorrect reference to the player perhaps? I wasn’t sure how to reference a specific world actor so I did it by Array of actors, but I’m not sure if that’s a good way of doing it?
Any direction would be much appreciated
Thanks - Chap