-
Notifications
You must be signed in to change notification settings - Fork 3
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
Important functions to add #9
Comments
I added PlaceBuilding at some point today. Made it a bit more configurable, documentation is here. https://github.com/snipplets/Dota-2-Building-Helper/wiki/BuildingHelper:PlaceBuilding |
I went for a simple version (no callbacks or anything) that adds the option to not block the gridnav (this handles upgrades, as an upgrade is simply RemoveSelf() and calling PlaceBuilding w/o blocking the gridnav again, just reassigning the .blockers to the newly created building) I also added a BuildingHelper:BlockGridNavSquare(size, location) function that is called on both ways of placing buildings (with a rudimentary fix for 5size grid blocking, which was blocking only a 4square) |
Oh that's a better way of doing it. Do you think its worth snapping PlaceBuilding to grid always as well? Otherwise you could end up with these weird offset buildings. Could have it as an arg i suppose |
BuildingHelper:PlaceBuilding(name, size, position)
BuildingHelper:UpgradeBuilding(building, name)
The text was updated successfully, but these errors were encountered: