Expose entity graphics within LuaEntityPrototype

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
BurninSun
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Fri Mar 16, 2018 4:54 am
Contact:

Expose entity graphics within LuaEntityPrototype

Post by BurninSun »

I want to use rendering.draw_animation or rendering.draw_sprite to draw my own copies of entities. Currently, the only way to get those graphics is by iterating entities and copying their graphic information into an animation/sprite prototype during data stage.

I would like LuaEntityPrototype to have an attribute of sprite or animation which returns something which can be passed directly to rendering.draw_animation/sprite.
Post Reply

Return to “Modding interface requests”