LuaEntity.direction fails to read character direction

This subforum contains all the issues which we already resolved.
Post Reply
klugemonkey
Inserter
Inserter
Posts: 23
Joined: Tue Jun 12, 2018 5:07 am
Contact:

LuaEntity.direction fails to read character direction

Post by klugemonkey »

LuaEntity.direction fails to read a character direction and always returns 0 (defines.direction.north) no matter what direction the character is facing.
Writing a character direction with LuaEntity.direction works as expected and the character's direction changes.

This was tested on 0.16.51

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaEntity.direction fails to read character direction

Post by Rseding91 »

Thanks for the report. It's now fixed for 0.17. In the mean time you can read walking_state.direction to get the real direction.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”