I need a way to add charges to a weapon. I looked at the vultures to see how they did it and tried to duplicate it, but that ability only allows charges to be added to ABILITIES, not weapons. Any way to do this without using triggers?
I would probably use a stackable behavior, remove one behavior stack for each shot of the weapon, disable the weapon by default and make the behavior enable the weapon. So, if the behavior stack reaches 0, the weapon cannot fire anymore, until you add more behavior stacks.
You can also try to incorporate a magazine - type ability, however i found the behavior approach to be easier.
Hiya,
I need a way to add charges to a weapon. I looked at the vultures to see how they did it and tried to duplicate it, but that ability only allows charges to be added to ABILITIES, not weapons. Any way to do this without using triggers?
I would probably use a stackable behavior, remove one behavior stack for each shot of the weapon, disable the weapon by default and make the behavior enable the weapon. So, if the behavior stack reaches 0, the weapon cannot fire anymore, until you add more behavior stacks.
You can also try to incorporate a magazine - type ability, however i found the behavior approach to be easier.
Any way to display how much ammo you have left with the behaviors? Any way to have a button that displays the amount of ammo you have?
Link charges?
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
wut?
Try linking the weapon charges to an ability's charges and then use your Modify Unit effect to replenish those.
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
GAH. Should've thought of that sooner.
Duh - sorry for my bad advice, I actually didn't know, weapons had a Cost + field and could use charges.
Nope - turns out it doesn't work...