I have a hero with a ability that basically creates a unit which mimics the weapon the hero currently has equipped. Example, hero has weapon A equipped, mimic unit created by hero should fire weapon A, or hero has weapon B equipped, mimic unit should fire weapon B instead of A
so i have it set up like this the mimic unit -behaviors field(a different behavior modification that equips the mimic unit with a different weapon)
now the problem im stumped on is the validator i need to use for disabling the other weapons not currently equipped by the hero. how do i get a validator that compares the hero's weapon? i've tried using a behavior applied on the hero when he uses a specific weapon but i still dont know exactly how to get the validator to target the hero and compare the behavior
As usual Blizzard has the answer ready for you, look at the changeling validators. They are of the Unit Compare Field type, in the case of the changeling they look at the Race fields. All you need to do is get them to look at the weapon fields and then do like the goliath weapon and swap.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I have a hero with a ability that basically creates a unit which mimics the weapon the hero currently has equipped. Example, hero has weapon A equipped, mimic unit created by hero should fire weapon A, or hero has weapon B equipped, mimic unit should fire weapon B instead of A
so i have it set up like this the mimic unit -behaviors field(a different behavior modification that equips the mimic unit with a different weapon)
now the problem im stumped on is the validator i need to use for disabling the other weapons not currently equipped by the hero. how do i get a validator that compares the hero's weapon? i've tried using a behavior applied on the hero when he uses a specific weapon but i still dont know exactly how to get the validator to target the hero and compare the behavior
As usual Blizzard has the answer ready for you, look at the changeling validators. They are of the Unit Compare Field type, in the case of the changeling they look at the Race fields. All you need to do is get them to look at the weapon fields and then do like the goliath weapon and swap.
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
@DrSuperEvil: Go
well ok that seems like it could work but how do I get the validator to target the hero and compare? do I use source, unit orgin, caster or what?
this is how it looks like right now and it isnt working for me, any suggestions?
Validator - Field Weapon
Validator - Other Unit + (None):e_effectUnitUnknown
Validator - Unit + (None):Source
Validator - Value WeaponA