Ok so I’ve got a problem with my Child Actor Component of my gunship actor.
The actor and child work fine if placed into the level beforehand, the parent works fine if spawned but the child (turret) doesn’t fire it’s On Pawn Seen event, and if the turret is spawned by itself it works fine, so it’s just when the turret is a child of a spawned actor.
I seemed to have fixed this when I added the “Set Child Actor Class” node into the event begin play of the gunship, however now when the turret is line tracing it always hits it’s parent even though it is an actor it’s meant to ignore.
So i either have a turret that can’t see the player, or I have a turret that can’t shoot because it keeps seeing it’s own ship.
What can i do here? Why is the “Actors to Ignore” array on the line trace not working anymore?
(Note this is a 2D game set in 3D space, so all active elements (ships and stuff) are on the 200 z axis, the turret is raised a bit above this since it’s sitting on top of the gunship so the trace is set to starts within the gunship. I could just set the trace to start outside the gunship but I want to solve this problem of why the line trace isn’t ignoring actors)