DaedalicEntertainment/ue4-orders-abilities

Unreal Engine 4.22 compatibility

Skjolnir opened this issue · 4 comments

Hey Nick,

thanks for the presentation and the code sample, might prove very useful for our current project.

One thing to mention though: With UE 4.22 you can't directly override AController::Possess anymore, but have to override AController:OnPossess instead.

I would guess you just need to set the owner of the pawn to be the player controller, but possess it by an AI controller.

overriding the GetNetConnection of the actor and returning the connection of the player controller did the job.
I'm not sure if it's not breaking something else.

To bad that it doesn't work with the ability component