I am trying to make a unit that can swap between a anti infantry minigun and a anti air missile launcher. My idea is to have two separate abilities to activate the weapons, the change of weapon will not be permanent and you could change from minigun to missiles whenever you wanted and it will only make the unit stop some seconds and then the ability will have a cooldown of like 20 seconds. The problem is that I don't even know how to do it and I cannot find any information on the topic
You should take a look at the Oracle Activate Pulsar Beam Weapon.
The way the Oracle does it, is by having a behavior added to the unit, that enables the weapon in the Modification of the Behavior - Buff.
You can add 2 weapons to a unit, set 1 to be Disabled in the Options of it. Then have a Behavior that disables the weapon that you already have active, and enables the disabled weapon. If you need clarification, I'll create a short tutorial to show you how to do it.
I am trying to make a unit that can swap between a anti infantry minigun and a anti air missile launcher. My idea is to have two separate abilities to activate the weapons, the change of weapon will not be permanent and you could change from minigun to missiles whenever you wanted and it will only make the unit stop some seconds and then the ability will have a cooldown of like 20 seconds. The problem is that I don't even know how to do it and I cannot find any information on the topic
You should take a look at the Oracle Activate Pulsar Beam Weapon.
The way the Oracle does it, is by having a behavior added to the unit, that enables the weapon in the Modification of the Behavior - Buff.
You can add 2 weapons to a unit, set 1 to be Disabled in the Options of it. Then have a Behavior that disables the weapon that you already have active, and enables the disabled weapon. If you need clarification, I'll create a short tutorial to show you how to do it.
In reply to zerakimtwitch:
Thank you very much. I will try to make the weapons like you told me to