I made item which have behaviour B1, this behaviour enable weapon W1 for hero.
you can add another behaviour B2 via ability unit has.
B2 gain unit another weapon W2, enable it and disable W1.
all works fine, and I had 2 such items
and one works perfect, another one during switch weapons from W1 to W2 always show one certain weapon B1 in UI and "disabled" when hero really used W2
Problem that when I pick up one item both weapon's icons on hero swaps normally, when I pick another one(which is copy of first one) icon of hero weapon W1 always shown. Even when I removed this weapon by trigger during event "add B2" - hero use and fire with W2 but weapon icon will disappear at all like it no weapon
Weapons havent flag "hidden" at both items, items are almost identical except effect trees, but copy seems glitched
Seems very important give W1 with item, not via behaviour which also granted when equipping item, or Weapon 2 never shows, even if it used, instead you see disabled weapon 1 in hero icon. Solved.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I made item which have behaviour B1, this behaviour enable weapon W1 for hero.
you can add another behaviour B2 via ability unit has.
B2 gain unit another weapon W2, enable it and disable W1.
all works fine, and I had 2 such items
and one works perfect, another one during switch weapons from W1 to W2 always show one certain weapon B1 in UI and "disabled" when hero really used W2
Problem that when I pick up one item both weapon's icons on hero swaps normally, when I pick another one(which is copy of first one) icon of hero weapon W1 always shown. Even when I removed this weapon by trigger during event "add B2" - hero use and fire with W2 but weapon icon will disappear at all like it no weapon
Weapons havent flag "hidden" at both items, items are almost identical except effect trees, but copy seems glitched
Anyone faced such before?
I would just use the behaviour to add the weapon and disable the adding behaviour b1 with b2.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Seems very important give W1 with item, not via behaviour which also granted when equipping item, or Weapon 2 never shows, even if it used, instead you see disabled weapon 1 in hero icon. Solved.