Controlling a character with lua
Posted: Wed Aug 17, 2016 12:21 pm
Is there a way to make a character actually walk or preferably a way to emulate a key press from a player? For example if I wanted to write a bot for factorio, are there any functions for emulating control? Unfortunately you can't do a lot of things realistically with the functions I have found, such as mining an entity. Hopefully there is a way to do this without using some kind of external method 
EDIT:
LuaPlayer.walking_state is labelled as read-only on the wiki, but the example shows it being set, could anyone clarify which way it is used? (Can't access a PC right now) And also mining_state.

EDIT:
LuaPlayer.walking_state is labelled as read-only on the wiki, but the example shows it being set, could anyone clarify which way it is used? (Can't access a PC right now) And also mining_state.