LuaEntity.direction fails to read character direction

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

LuaEntity.direction fails to read character direction

Post by klugemonkey » Sun Jun 17, 2018 5:33 pm

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: 8846
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaEntity.direction fails to read character direction

Post by Rseding91 » Mon Jun 18, 2018 9:48 am

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”

Who is online

Users browsing this forum: No registered users and 3 guests