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

SetUnitFlyHeight selection circle height deviation #6

Open
WaterKnight opened this issue Nov 3, 2023 · 0 comments
Open

SetUnitFlyHeight selection circle height deviation #6

WaterKnight opened this issue Nov 3, 2023 · 0 comments
Labels
ingame issue ingame feature does not behave as expected low severity map script issue problem with map scripting (not specifically world editor)

Comments

@WaterKnight
Copy link
Contributor

External URLs

https://us.forums.blizzard.com/en/warcraft3/t/setunitflyheight-selection-circle-height-deviation/29119

Summary

When you increase a unit’s fly height with the SetUnitFlyHeight native function over the unit’s previous maximum fly height, the selection circle height gains an offset compared to the model, potentially falling through the ground, thus getting invisible.

Description

Additional information:
Changing the unit’s fly height back to X does not reset the distance, it remains the same.
It seems like the game remembers what the unit’s previous maximum fly height was. If you change the unit’s fly height back to X and then again to X + 100, the distance will still be the same from before but changing it to X + 200 apparently adds another 100 distance.
So the deviation can only get larger or remain the same.

Expected

The distance between selection circle and the unit’s model stays the same.

Actual

The distance between selection circle and the unit’s model grows (presumably by 100).

Reproduction steps

When you increase a unit’s fly height with the SetUnitFlyHeight native function over the unit’s previous maximum fly height, the selection circle height gains an offset compared to the model, potentially falling through the ground, thus getting invisible.

Workaround

No response

Screenshots

No response

Game Versions

1.33.0 (1.33.0.18931, 1.33.0.19010, 1.33.0.19019, 1.33.0.19089, 1.33.0.19308)

@WaterKnight WaterKnight added ingame issue ingame feature does not behave as expected map script issue problem with map scripting (not specifically world editor) low severity labels Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingame issue ingame feature does not behave as expected low severity map script issue problem with map scripting (not specifically world editor)
Projects
None yet
Development

No branches or pull requests

1 participant