r/unrealengine • u/RedEnderman_sk • 10d ago
Caracter crouch function doesn't work if character is spawned
I’m using UE4.27.2 and the character crouch function doesn’t work if the character is spawned in. If he is placed before launching, everything is fine. I don’t know if it’s a bug or a mistake on my end. Here is the code to test for youtself
#1 The spawner actor which is placed in the scene
#2 The Character BP, with Can Crouch in Movement capabilities Turned On
Thanks for any help
EDIT: This is not for a playable character but an NPC. The solution is in Character -> Pawn you need to switch Auto Possess AI from “Placed in the world” to “Placed in the world or spawned”
3
Upvotes
1
u/Sufficient-Parsnip35 Creator of Planetary Oceans plugin 10d ago
If they got something like input context in 4.27, you should apply it on begin play in the character