I’m trying to write my own PlayerController with inputs etc,
But i dont know how to Possess a Character/Pawn.
I know about the Possess(APawn*) function, but i have no idea how and where to use it correctly!
can anyone help?
I’m trying to write my own PlayerController with inputs etc,
But i dont know how to Possess a Character/Pawn.
I know about the Possess(APawn*) function, but i have no idea how and where to use it correctly!
can anyone help?
I’m not quite sure, because I’m trying to receive keyboard Inputs from the user.and it doesn’t work, therefore i thought this might be , because i have no character possessed, but I have selected my ACharacter class inside the GameMode like you said.
hmm…
If you just want a new Pawn/Controller you do not need to call Possess, the engine code will call it within AGameMode::RestartPlayer using the controller and pawn classes that are specified in your GameMode. Is that what you need?
You have to select the character and the controller class in there.
Yeah i did x.x
Is there any warning in the log? About not able find a proper PlayerStart for example?
Are you still struggling with the issue?
Strange indeed, it is as simple as just specializing from the engine classes and using them in your own GameMode and then setting that game mode for your level (in the WorldSettings or the DefaultEngine.ini file).
Well, I’m still trying to get KeyboardsInputs working with my own PlayerController, Everything works fine with the given PlayerController from the Engine.
hmm, I think I’ll try to write my own InputComponent
but never done this before