I’m new to unreal engine and building AI so bare with me.
The AI character in my game runs towards the player. Once the player shoots the AI,
In my player controlled character’s blueprint:
- I use the function “Set Simulate Physics” with the target being the AI character’s mesh.
- I then use “Add Impulse at Location”
This works greats.
Problem is it seems that there’s something left behind. The mesh will get knocked around but some sort of invisible capsule still stays where the AI character was shot and I have to use “Detatch from Controller Pending Destroy” or else that invisible capsule is still running towards me.
I believe that invisible part is the AI controller. There’s another thing called the capsule component which could also be the culprit.
Is the AI controller what I want to get rid of? If so, how? I tried using “DestroyComponent” but to no avail. I could use “DestroyActor” but that gets rid of the mesh too.
So again, my goal is that I want the mesh to stay for a bit so I can see the ragdoll effects but I want to get rid of everything else.
This is exactly the problem I’m having:
I tried using Get AIController -> Un Possess -> DestroyActor but it’s not working either.