I am having difficulty setting generic units as waves. Previous tutorials have showed the creation of units and manipulation of those units in a Tower Defense type map. However, I intend to create a trigger function that, instead of creating new units, selects potential units on the map (Units created by a player, during play). I have been unsuccessful after hours of trial-and-error and research into the subject.
Any help would be greatly appreciated, any questions will also be welcomed.
I want 6 generic zergling units from a zerg base to attack Player 1. I cannot use a unit selection action because unit selection requires an actual unit on the editor map. I wan't to select generic zerglings that will be trained after the game start, and use those selected units to attack a base, using the wave actions of the "AI" and "Advanced AI" trigger actions.
New thought:
Could this be accomplished by setting all newly trained units into sections (i.e. zerglings into "Unit Group Zerglings," or hydralisks into "Unit Group Hydralisks") and when an attack is initiated, to select a specific number of them, say 6 units from "Unit Group Zerglings" and use the newly selected zerglings to attack Player 1?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am having difficulty setting generic units as waves. Previous tutorials have showed the creation of units and manipulation of those units in a Tower Defense type map. However, I intend to create a trigger function that, instead of creating new units, selects potential units on the map (Units created by a player, during play). I have been unsuccessful after hours of trial-and-error and research into the subject.
Any help would be greatly appreciated, any questions will also be welcomed.
Unit Group - Pick every unit owned by player X and do (actions)?
You don't really say what you wanna do after selecting those units.
I want 6 generic zergling units from a zerg base to attack Player 1. I cannot use a unit selection action because unit selection requires an actual unit on the editor map. I wan't to select generic zerglings that will be trained after the game start, and use those selected units to attack a base, using the wave actions of the "AI" and "Advanced AI" trigger actions.
New thought: Could this be accomplished by setting all newly trained units into sections (i.e. zerglings into "Unit Group Zerglings," or hydralisks into "Unit Group Hydralisks") and when an attack is initiated, to select a specific number of them, say 6 units from "Unit Group Zerglings" and use the newly selected zerglings to attack Player 1?