Getting entity prototype max_speed of locomotive
Posted: Thu Jul 25, 2019 6:38 pm
I'm not so good with the control.lua stuff, yet. I'm working on a mod that modifies the max_speed values (among other things) of various locomotive entities of both vanilla and mod added. In one of these mods that adds locomotives, I noticed as a part of a gui display, they have hard coded their locomotive's max speed in a calculation. I wanted to see if currently there's a way to pull it dynamically (entity.prototype.max_speed appears to be for projectiles only) that I could use to fix my copy of their mod and, provided it works, suggest the fix to them.
Note that this is just the locomotive entity itself, not the "train".
Note that this is just the locomotive entity itself, not the "train".