So I'm working on a map using tanks, and I want to make an 'autoloader' system, so that a tank can quickly fire 5 or 6 shells. but then has to reload for a while. I've tried to make this using the charge option under the weapon cost, and it will fire its shells, but i can't figure out a way to automatically let it reload when it's empty. Any help would be appreciated :)
@DrSuperEvil Thanks for the advice, but this does not entirely solve it. For example: if a tank has a 5 shot magazine, and fires 2 shots at a tank but saves 3 for later. I dont want them to refill while the magazine is not empty yet, only when its empty or a reload button is pressed. is that possible?
So I'm working on a map using tanks, and I want to make an 'autoloader' system, so that a tank can quickly fire 5 or 6 shells. but then has to reload for a while. I've tried to make this using the charge option under the weapon cost, and it will fire its shells, but i can't figure out a way to automatically let it reload when it's empty. Any help would be appreciated :)
Use charges on the weapon. There is a flag under the (None): category. Look back under the data forums a few pages.
https://www.sc2mapster.com/forums/development/data/184143-weapon-cooldown-after-charge-solved
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 Thanks for the advice, but this does not entirely solve it. For example: if a tank has a 5 shot magazine, and fires 2 shots at a tank but saves 3 for later. I dont want them to refill while the magazine is not empty yet, only when its empty or a reload button is pressed. is that possible?
Could always use a Modify Unit effect and a Unit Compare Charged Used validator on a buff behaviour.
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