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

ForUnitsOfType has some quirks that are worth documenting #18

Open
Cokemonkey11 opened this issue Mar 31, 2019 · 1 comment
Open

ForUnitsOfType has some quirks that are worth documenting #18

Cokemonkey11 opened this issue Mar 31, 2019 · 1 comment

Comments

@Cokemonkey11
Copy link
Contributor

From wurst docs:

Executes the given closure for every unit of the given type. Remember that names of custom units are "custom_[typeId]"
@WaterKnight
Copy link
Contributor

The name for original unit type comes from the name column in the units/unitui.slk. For custom units it's "custom_" + fourcc, e.g., "custom_h000", yes. The same mechanism is used in CreateUnitByName and GetPlayerTypedUnitCount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants