character "supports orientation = true", but returns north

Things that has been reported already before.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 445
Joined: Thu Dec 21, 2017 8:02 am
Contact:

character "supports orientation = true", but returns north

Post by ownlyme »

/c game.player.print(game.player.character.supports_direction)
-> returns true
/c game.player.print(game.player.character.orientation)
-> returns 0
/c game.player.print(game.player.character.direction)
-> returns 0

depending on the facing direction, the player's position is not exactly centered on the player model.
so when you spawn a circle (a shield for example) on a player, it will be offset when the player is facing left or right.
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Rseding91
Factorio Staff
Factorio Staff
Posts: 16299
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: character "supports orientation = true", but returns north

Post by Rseding91 »

This is already fixed for 0.17. In the meantime you can use player.walking_state.direction.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Duplicates”