I've got a building that is unselectable whilst its being built, I'm wondering wether I can attach an additional model and extend a unit's selection box in some way via actors.
Has anyone encountered and solved this problem yet? I'd love to know how to extend a unit's selection hitbox.
As I know the selection box is defined within the model itself. So you cant fix it in editor.
I have 2 examples to explain it.
The Naga buildings in warcraft III mod 1.0 that build animation is bugged, after the fix too.(that I found in orc buildings), it cant be select until the animation near to end and the model appear, so I created a model that is looks like a water splash, but it wont worked it appeared but the building stay unselectable, I changed the model to other water like effect, and then the the building was selectable.
I created an ability that spawns gas, and if gas destroys according to a damage effect, its explode but when I select a model for it, it wasn't be selectable, then I created another model that under the effect of gas, and it become selectable, and now I have gas looking. targetable, explodeble gas.
So I suggest you to find a selectable model, that big enough to get the size of the selection, but not too big, so it can be hidable under the model you would like to use.
After some messing around and some trial and error, I found out that if you change the "Art: Model(build)" to for example a farm model, you get the farm-build-in-progress model actor during the birth of your building, fixing my issue.
TLDR: changing "Art: Model(build)" to a building with a proper birth actor is the answer
Hey,
I've got a building that is unselectable whilst its being built, I'm wondering wether I can attach an additional model and extend a unit's selection box in some way via actors.
Has anyone encountered and solved this problem yet? I'd love to know how to extend a unit's selection hitbox.
Thanks in advance.
@Pecula: Go
As I know the selection box is defined within the model itself. So you cant fix it in editor.
I have 2 examples to explain it.
The Naga buildings in warcraft III mod 1.0 that build animation is bugged, after the fix too.(that I found in orc buildings), it cant be select until the animation near to end and the model appear, so I created a model that is looks like a water splash, but it wont worked it appeared but the building stay unselectable, I changed the model to other water like effect, and then the the building was selectable.
I created an ability that spawns gas, and if gas destroys according to a damage effect, its explode but when I select a model for it, it wasn't be selectable, then I created another model that under the effect of gas, and it become selectable, and now I have gas looking. targetable, explodeble gas.
So I suggest you to find a selectable model, that big enough to get the size of the selection, but not too big, so it can be hidable under the model you would like to use.
After some messing around and some trial and error, I found out that if you change the "Art: Model(build)" to for example a farm model, you get the farm-build-in-progress model actor during the birth of your building, fixing my issue.
TLDR: changing "Art: Model(build)" to a building with a proper birth actor is the answer