I NEED HELP! I was wondering how it is possible to make it so that when you pick up an item(ex.handgun),it makes the units attack ranged on both land and air units. What i want to do is make it so my peasant be able to defend himself with a handgun in a custom map. So if possible PLZ help...
Though there's no trigger that can deactivate one of the both unit attacks, I don't find a really good solution. Perhaps later I have some time and take a second look.
You can make a new model with the requested attacks and use the replace unit trigger. If you paste all relevant unitvalues like exp hp mana etc you can create the illusion that the unit puts on the weapon...
I found out a funny bug: In of my maps i used changeable weapons and worked with attachments i used array varies to store the carried items and used a "run for each integer a from 1 till 6" funtion the itemtypes where stored correct(I tested with scoreboard). But if i ordered to create for each integer a from 1 till 6 the stored itemtypes to the replayced unit nothing happened... after i putted a 0.01 s wait in the trigger worked... Strange isnt it? declarieng variabled shouldent need much performance, should it?
@Master Modmaker: That is an interesting bug. I've also found sometime that triggers don't work very well with declaring variables without a wait action. Maybe Blizzard is trying to screw us all over? lol.