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

WithDisguisingInfantryBody when it has been disabled still runs MoveSequence in background #17560

Open
Punsho opened this issue Jan 5, 2020 · 2 comments

Comments

@Punsho
Copy link
Contributor

@Punsho Punsho commented Jan 5, 2020

I have made a spy with 2 WithDisguisingInfantryBody, one is for when the spy is imitating a special unit that has its sequences named differently. So when the spy is disguised as a non-special unit the disabled WithDisguisingInfantryBody still tries to run the movement sequence and as the imitated unit does not have that sequence it crashes the game.

Exception of type `System.InvalidOperationException`: Unit `e1` does not have a sequence named `swim`

@Mailaender

This comment has been minimized.

Copy link
Member

@Mailaender Mailaender commented Jan 10, 2020

Have you tried using only one WithDisguisingInfantryBody and add all the possible sequences onto it?

@Punsho

This comment has been minimized.

Copy link
Contributor Author

@Punsho Punsho commented Jan 10, 2020

I really can't. Because then I need to add all possible sequences to all actors that can be immitated by the spy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.