character "supports orientation = true", but returns north

Things that has been reported already before.
Post Reply
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 400
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.
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
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”