Change entity view at runtime

Things that already exist in the current mod API
Post Reply
Hermios
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Sat Aug 13, 2016 2:57 pm
Contact:

Change entity view at runtime

Post by Hermios »

Hello
Some suggestions : Make the "Picture" (or animation, or any equivalent) of entities changeable at runtime.
For example, on a vehicle or a character, some new properties (like equipment) will change its view
This is already possible for some items (Lamp, rail-signal) and under some circumstances (entity destroyed, rotate etc.), but it would be great to have this more "opened", i.e. changeable by script!

Thanks

Niko

Bilka
Factorio Staff
Factorio Staff
Posts: 3130
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Change entity view at runtime

Post by Bilka »

When using entities that use sprites with variations you can choose the variation runtime: https://lua-api.factorio.com/latest/Lua ... _variation
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Already exists”