The picture below shows my "Carrier" unit with it's "Interceptors," I will now call these Commander and Marines.
The Commander is able to load as cargo. The unit with the cargo load/unload ability (ie Medivac, Dropship) disables the Commander's Arm Magazine ability when it is loaded. This kills all of the Marines and prevents the Commander from producing more while it is loaded as cargo. If this behaviour wasn't in place, then the Marines would stay on the map (on foot) and walk towards their Commander....who is in the dropship half a continent away. That also means, currently, whenever my Commanders enter a dropship and then exits, I have to wait for all of the Marines to be re-made. I want to mitigate this wait time.
How can I make a behaviour/buff that adds more units to the Commander's arm magazine ability when it disembarks? I know where to attach it, I just don't know how to add more units to an magazine ability. Thank you!
My Troop Commander uses a Hanger/Arm Magazine ability to spawn Marines. This allows 1 Commander to issue orders to all of the Marines it generates.
When the Commander loads into a Dropship, the Load/Unload ability of that Dropship has a "Hide Marine" behavior....however instead of hiding the Marines it just disables the Commander's Hanger/Arm Magazine ability...I just called it a "hide" behavior and this simply kills all of those marines. Which is fine.
That means when the Commander leaves the Dropship, it has to wait and respawn every Marine (costs 5 hp every 5 seconds to spawn 2 marines) which means if a Commander has 20 marines that follow it (external) I will have to wait a whole minute after leaving the dropship just to have all of my troops again, not including the Hp cost of producing the unit.