Page 1 of 1

[Help] Custom turret rotate on his own after shooting

Posted: Sun Jun 16, 2019 5:02 pm
by Linver
Hi all!
I have a strange bug with a custom turret, the bug is that the turret rotate the angle in which it can shoot after have shooting on enemies that are on the border of angle.

Here there's a video that show the bug: https://www.youtube.com/watch?v=thR_A7n ... e=youtu.be
Here there's the lua which define the turret: https://pastebin.com/Sggk7wef

Thank to all for reading and for future answers.

Re: [Help] Custom turret rotate on his own after shooting

Posted: Sun Jun 16, 2019 5:28 pm
by posila
I think you need to set turret_base_has_direction = true in the turret prototype definition (see flamethrower-turret in base mod)

Re: [Help] Custom turret rotate on his own after shooting

Posted: Mon Jun 17, 2019 9:05 am
by Linver
I will try it, thank u a lot!