Adding Unit to Spawn Classes
Posted: Thu Dec 28, 2017 12:26 am
I understand how to replace a unit like the standard rifleman with a hero unit such as Vader, but how would I add Vader on in addition to the units already there?
For instance, I want to have all the standard imperial troops in a mission and have Vader be playable not as a hero, but simply another unit from the spawn menu. Currently, I copy/paste the "special" unit script and replace the jet trooper script with the Vader script, but this removes the jet trooper entirely when in game.
Eventually, I want to add Leia, Solo, and Luke for the rebels side as well, simply as playable units. But, I cannot figure out how to do this without replacing the stock units entirely.
I researched and could not find anything, any help is greatly appreciated.
For instance, I want to have all the standard imperial troops in a mission and have Vader be playable not as a hero, but simply another unit from the spawn menu. Currently, I copy/paste the "special" unit script and replace the jet trooper script with the Vader script, but this removes the jet trooper entirely when in game.
Eventually, I want to add Leia, Solo, and Luke for the rebels side as well, simply as playable units. But, I cannot figure out how to do this without replacing the stock units entirely.
I researched and could not find anything, any help is greatly appreciated.