[1.1.67] modding related, flashlight enable/disable on LuaPlayer
Posted: Sat Aug 20, 2022 2:09 am
Under Luaplayer, enable_flashlight() and disable_flashlight() are listed, but do nothing. is_flashlight_enabled does translate from a character entity (and seems to return true always when there is no character e.g. editor). enable and disable flashlight work as expected on a character entity.
https://lua-api.factorio.com/1.1.67/LuaPlayer.html
I assume enable/disable should work, because they are listed under LuaPlayer and are a LuaControl, following the pattern of a number of other character+player / character entity things.
https://lua-api.factorio.com/1.1.67/LuaPlayer.html
I assume enable/disable should work, because they are listed under LuaPlayer and are a LuaControl, following the pattern of a number of other character+player / character entity things.