How can I convert a reference to a class to a reference to a blueprint?
Hello, I'm starting to try using multiplayer for a game I am currently developing, but I'm struggling to get my characters owner. I have tried "get controller" but that only works for setting the server's controller and not the client's. I am now trying to get the game mode and get a reference to the controller from there. I can get access to the class but not a reference to the blueprint. Is there any way to convert this to a blueprint reference of my player controller? Or does anyone know a better way to get the controller of an actor at BeginPlay?
asked Jan 01 '16 at 09:52 PM in Blueprint Scripting
Player controllers are only replicated to the owning client. If you're trying to access the server player's controller on the client, that will never work.
Game modes are not replicated at all, ever, to clients.
Oh, and blueprints ARE classes. If you meant an object created from a blueprint, that'd be another matter.
Follow this question
Once you sign in you will be able to subscribe for any updates here