Get/set direction of currently non-rotatable entity

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
mickael9
Fast Inserter
Fast Inserter
Posts: 112
Joined: Mon Mar 14, 2016 4:04 am
Contact:

Get/set direction of currently non-rotatable entity

Post by mickael9 »

Some entities such as the assembling table have no direction unless we change their settings (eg set it to a fluid recipe).

When in that state, the direction property always returns 0 and assignments to it are ignored. But the entity actually has a direction, it's just not exposed.
If you set a fluid recipe, then rotate, then reset the recipe, the rotation is still kept (but always exposed as 0 in the mod API when the recipe is cleared).

It would make sense for the real direction to always be exposed and allow it to be changed in that case.
Post Reply

Return to “Modding interface requests”