How do I attach an NPC inside the car? I want the NPC to appear inside the car when I hit play. Can anyone help me?
How do I attach an NPC inside the car? I want the NPC to appear inside the car when I hit play. Can anyone help me?
On your car actor BP, add a scene component to it called DriverSeatLocation or something, and place it where a person should sit (or add a socket to car’s skeleton if using skeletal mesh for car), and attach NPC to component (or socket) when you want them to drive. And probably set NPC capsule collision to ignore vehicle or disable it entirely so the car physics don’t freak out due to collision penetration lol. When it’s time for NPC to get out, unattach pawn, teleport them to a loc beside car, and set their collision back to normal. Could also use a scene component (or hidden-in-game arrow) to mark exit location.
This ^^^^^ +,
if your NPC is using CMC you need to disable movement. There’s a node for it. Or just use Set movement mode “none”. It’s exactly what disable movement node does.
Definitely disable collision on the capsule component.