How to make the Character keep falling when not possessed?

I’m using the BluePrint SideScroller Template. I made this simple BluePrint to change the Character the player controls with a key press:

http://puu.sh/cCT6Y/c5bae64989.jpg

It’s working fine. Except that if I leave the possession when the Character is jumping in the air, that Character will get stuck floating in the air instead of falling. If the Character is running when it loses possession, it will get stuck in running animation but abruptly stops moving.

It seems like the movement of the Character class isn’t updated when it doesn’t have possession? How could I fix that?

The problem was because the Character won’t move unless there’s a controller assigned to it. It was working at the start of the level because it was assigned to the AIController by default. But possessing then unpossessing it loses the controller.

I solved it by assigning the default AIController back after the unpossession, as was suggested to me on the forums. Did this by just adding a Spawn Default Controller node after the possession.

Here’s how it looks like now:

http://puu.sh/cLJUT/71a2dfcae7.jpg

This is the proper way to do it.

3 Likes

Answer also here (above link is in error)