[Help] Custom turret rotate on his own after shooting

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

[Help] Custom turret rotate on his own after shooting

Post 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.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post by posila »

I think you need to set turret_base_has_direction = true in the turret prototype definition (see flamethrower-turret in base mod)

User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

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

Post by Linver »

I will try it, thank u a lot!

Post Reply

Return to “Modding help”