You run the code on your playercharacter, not on the AI - so your player simulates physic, not the AI. And your player in your setup will not simulate physics, because of the cast will fail. You need to feed in the AI character except of the “getPlayerCharacter” Node (Get one with for example GetAllActorsOfClass)