Hi. I'm working on a DOTA-style map that has a building on each teams side that for a certain amount of minerals, will send one wave of creeps at the other side. I want every player on each team to be able to use their respective buildings. However, I'm not exactly sure where to begin with creating an ability for a building that would do this. Any help would be appreciated.
I had to use both data and triggers for this to work, and mine is a time based spawn.
For Data
1. You will have to create upgrades for each unit type that you want. For example, if you want a marine and a firebat, you will have to create 2 different upgrades. After that, assign the upgrades to the respective buildings that you want them to have
For Trigger
2. Next, go to the trigger editor, since mine is time based, my trigger is triggered by a periodic timer.
As for the actions, go to Create units with default facing. You should get something like this
Create 1 Unit for player 1 at point using default facing
Change the 1 for the unit to your upgrade that you have created and fill in the rest of the trigger and it should work.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi. I'm working on a DOTA-style map that has a building on each teams side that for a certain amount of minerals, will send one wave of creeps at the other side. I want every player on each team to be able to use their respective buildings. However, I'm not exactly sure where to begin with creating an ability for a building that would do this. Any help would be appreciated.
I had to use both data and triggers for this to work, and mine is a time based spawn.
For Data
1. You will have to create upgrades for each unit type that you want. For example, if you want a marine and a firebat, you will have to create 2 different upgrades. After that, assign the upgrades to the respective buildings that you want them to have
For Trigger
2. Next, go to the trigger editor, since mine is time based, my trigger is triggered by a periodic timer.
As for the actions, go to Create units with default facing. You should get something like this Create 1 Unit for player 1 at point using default facing
Change the 1 for the unit to your upgrade that you have created and fill in the rest of the trigger and it should work.