[2.0.66] on_pre_build flip_horizontal and flip_vertical

Place to get help with not working mods / modding interface.
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 134
Joined: Tue Feb 06, 2024 5:18 am
Contact:

[2.0.66] on_pre_build flip_horizontal and flip_vertical

Post by hgschmie »

for a mod, I intercept the "on_pre_build" event so that I can correct information if a blueprint is placed that contains some of my entities. That event contains the direction in which all following entities are built (direction) and also flags whether the blueprint has been flipped horizontally or vertically.

When the blueprint is not rotated (direction == 0), then pressing "H" flips the graphic horizontally and the "flip_horizontal" flag is set.
When the blueprint is rotated 90º (direction == 4), then pressing "H" still flips the graphic horizontally, but now the "flip_vertical" flag is set.

Is that intentional?
Post Reply

Return to “Modding help”