How can I copy construction robots' animation onto logistic robots?

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
rainawareness
Inserter
Inserter
Posts: 22
Joined: Sat May 14, 2022 12:07 am
Contact:

How can I copy construction robots' animation onto logistic robots?

Post by rainawareness »

Construction robots have a RotatedAnimation type called working, which has their 2-frame animation when they are repairing a building.
https://wiki.factorio.com/Prototype/Con ... ot#working

I don't know how to code something like that or view its code to emulate it. However, I want to made a mod that gives logistic robots a 2 frame animation to logistic robots to make them seem more alive. It has types such as in_motion_with_cargo, which are the same RotatedAnimation thing. https://wiki.factorio.com/Prototype/Log ... with_cargo
Since I couldn't find any sort of guides on animating, I was wondering if someone could please point me in the right direction.

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2393
Joined: Fri Nov 06, 2015 7:41 pm

Re: How can I copy construction robots' animation onto logistic robots?

Post by Deadlock989 »

Logistics bots don't have the "working" state. Those flying bot states are hardcoded and can't be added or altered by Lua mods.
"If Stalin had a good writeup on programming, would linking that be dangerous?"

Post Reply

Return to “Modding discussion”