Hi, I have an AI pawn that functions correctly when placed / spawned in the world, but I want to have it transported by a vehicle. I attached the AI blueprint to the ships socket, and the ship transports it to the location I want, but when I use detach from component it just stays in the spot it was detached from. When I debug the AI it says there is no controller attached to it.
I tried another method, to spawn the AI when the ship lands, which is not really what I want, but for the sake of debugging I tried, and when I spawn the AI at the ships socket, the AI is active and does “work”. Although it flies in the air following me instead of walking on the ground. This is a big wall I’ve hit and I’d really appreciate some help, thanks!
Hi,
What do you mean you attached the AI to the ship? Did you have AI in the level and use attach actor, or did you add AI character to the Ships blueprint as a child blueprint?
That one. I did get it to work with attach to actor while they are already in the level. But for that to work properly I would have to hide the AI somewhere outside the map and then attach when I need them, but that just seems wrong, but it does work…
As a child blueprint, they won’t have AI controller attached, I suspect what you would have to do if you want to make this setup work is have the AI character that is attached be destroyed and spawn in his place another AI character(so he has AI controller) with same position, rotation and animations.
works properly when having it in the level already and attaching to the ship actor and the detaching. Only weird behavior when spawning to a location that isn’t right on the ground. I might just have the AI hidden in game until I need to attach.
Try and open the AI character and find Auto possess AI and change it to Placed in the World or spawned, for some reason it is only set to placed in the world by default.