[Rseding91] [1.1.39] create_entity ignores direction

This subforum contains all the issues which we already resolved.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[Rseding91] [1.1.39] create_entity ignores direction

Post by eradicator »

According to the doc create_entity accepts direction, but when trying to spawn a character it's always spawned facing north. Did not test with other entity types.

Code: Select all

/c game.player.surface.create_entity{name='character', direction=defines.direction.south, position={0,0}}
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14627
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.39] create_entity ignores direction

Post by Rseding91 »

Thanks for the report. Character entities use "orientation" not direction.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14627
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.39] create_entity ignores direction

Post by Rseding91 »

Actually I was wrong. It does use direction. I'll look into it more.
If you want to get ahold of me I'm almost always on Discord.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [1.1.39] create_entity ignores direction

Post by eradicator »

Rseding91 wrote: Thu Sep 09, 2021 3:36 pm Thanks for the report. Character entities use "orientation" not direction.
That would've broken all my other code in quite obvious ways. :mrgreen:

Thanks for fixing.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Post Reply

Return to “Resolved Problems and Bugs”