But if I jump with one Character then change possession to the other, then the first one gets stuck in the air instead of falling. Why is that? How can I fix it?
Yup, itās weird. I was guessing the Character class just doesnāt process movement if it checks there are no controllers. But Iām not a scientist.
Iāll try adding the an AI controller as you suggest, thanks for the idea.
Just adding this for future reference in case anyone with the same problem finds this post. TheSpaceMan was right (thanks!). The Character was working in the beginning since it starts with the default AIController, but unpossessing it loses the AIController so it stops moving. All I did was reassign the AIController after the possession using the Spawn Default Controller node and now itās working fine.
The problem with the last listed solution is that it will still slightly pause the movement. Say, if your character is falling and you do this; theyāll pause for a second in the air and then begin falling again. Iāve found an even more elegant solution to this problem. Thereās a Boolean in the CharacterMovement component called āRun Physics No Controllerā, by setting this to True it will solve the problem.
As far as I can see, you do the possession NOT in a āLevel Blueprintā? May I ask you: why so? Because I have the same problem now: have two players that I need to possess between. When I possess from one character to another, the first one, which was unpossessed, stucks right in the animation pose. Attempt to turn on āRun Physics No Controllerā gave me nothing, unfortunately.
Did you find a solution for this? I have the same issue.
Context: With Left-Click I toggle between two Characters and with a Right-click I order the selected one to go to a given location. I use āSimple Move to Locationā (see photos attached)
Problem: If the first character is still moving when I swich to the second character, the first stops and the second goes to the destination of the first
I have tried to use the āPossessā node to set back the default AIController to the character when deselected, but this does not change a thing.
Does someone have the slighliest idea of what may I be doing wrong?
Thank you so much, Iām so glad I found this sooner than later
In my opinion, running physics with no controller should be the default behavior - It just doesnāt make sense. (Not to mention all the MovementComponentās states like velocity and the like are still intact, the values just donāt register.)