Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWithEmbeddedTurretSpriteBody: fetching the first Turreted: and ignores the rest #17373
Labels
Comments
This comment has been minimized.
This comment has been minimized.
People helped me to set up conditional turn speed for a map mod some time ago: https://gist.github.com/matjaeck/483510708508b3baf43a24ed0d6af4ad#file-rules-yaml-L175 (not updated since then). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wanted to make it so that gun turret turns slower when low on power. As in the Traits code of WithEmbeddedTurretSpriteBody: is this comment 'Turret artwork is baked into the sprite, so only the first turret makes sense.', thought might workaround that by giving second Turreted: block also Turret: primary. That doesnt work since it cannot be pointed to use which turret. Its fetching the first Turreted and ignores the rest, even if i give the second Turreted block Turret: primary its ignored.
Cannot simply give multiple AttackTurreted: to one actor, even with RequiresCondition and PauseOnCondition setup such that ensures only one will be active at an time, for as then will get:
Exception of type System.InvalidOperationException: Actor gun has multiple traits of type OpenRA.Mods.Common.Traits.AttackBase.