AITanks don't shoot when I set refs(barrel, turret) on Construction Script

At first, I set these references to the 2 functions on construction script.

image

But AIs don’t shoot me.

This output log is set here :point_down:

Seems AITank couldn’t find barrel properly.

And I moved setting refs functions to BeginPlay, so it worked.

It is really weird for me…

Does anyone know why it happens?

Not really, they’re set while they’re in the level. If you move them and have compile on drag enabled you’ll see messages saying they’re set if you add logs to the SetXXReference functions.

I would suspect it would be to do with how the player is spawned whilst the AI are pre-existing in the world. Not sure why then would be unset for the AI though.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms