I am trying to access my int32 2d array gridmap in my GridManager class to do condition checking for my player character in my player character class. I think I need to make a GridManager pointer somewhere in player character class. And to make sure I assign the correct GridManager from the game world to the pointer, I think I need to use the GetAllActorsOfClass function but i am not too sure how to do it. Could somebody please help me?
This is my gridmap in my GridManager.h i created
I want to access it here to check if the player is on a path or heading toward a wall but i cant seem to access it to do the condition checking.