Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EditorActorBrush ignores InitialFacing in favor of PreviewFacing #20180

Open
Dzierzan opened this issue Aug 10, 2022 · 1 comment
Open

EditorActorBrush ignores InitialFacing in favor of PreviewFacing #20180

Dzierzan opened this issue Aug 10, 2022 · 1 comment

Comments

@Dzierzan
Copy link

Dzierzan commented Aug 10, 2022

Mobile trait has a parameter where preview facing of an actor can be changed in the editor. It works as it should. However I'd love to match PreviewFacing with initial facing of pre-placed actor. What I mean is that if I set value for PreviewFacing to let's say 0 then a newly placed actor on the map should face north due to value 0. In reality, it still uses default value 384. I thought that InitialFacing can change that but to my avail, it did nothing (I don't quite understand this parameter, though).

I only presume that right now OpenRA doesn't expose ability to change initial facing of pre-placed actors. Yes, I know in the editor itself you can change facing to any value you please. However, this is not what I want.

To make it even clearer. I know FacingInit can be changed in both map's yaml and editor itself. But I want FacingInit's value to 0, to be my new default value. I believe this is exposed nowhere.

@abcdefg30
Copy link
Member

InitialFacing determines which facing to use if no facing is specified. Unfortunately in the editor case, there is always a facing specified in PreviewFacing which takes precedence... Imho this is a bug, and the editor sidebar should show the preview facing, and the EditorActorBrush should use InitialFacing.

@abcdefg30 abcdefg30 changed the title Add ability to change initial facing of pre-placed actors EditorActorBrush ignores InitialFacing in favor of PreviewFacing Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants