Hey guys, as the title says. How can I make an ability which changes the spawn location?
What I want to do is to give the player the choice on where to spawn his/her units which can be changed to any of the other points anytime throughout the game. The player needs to click on an ability at a barracks in order to choose the spawning point.
I have setup 3 points for spawning locations, but I am having trouble getting the player to choose his spawning point in the trigger editor. Seems like I can only have 1 spawning location which cannot be changed...
You can make an ability in the data editor; I don't remember what kind of ability it should be, but there is a trigger call something like "ability used", and you can use that to sense every time someone uses that ability. Also, use variables to tell the trigger where to put the spawn point; I think that makes things alot easier.
Sry I couldn't be of more help, i just thought you might need a quick response. I'm not too good with triggers and data, so this might be a harder way than you need it to be.
Create an ability , effect instant and put that ability onto a building.
Then in the triggers, I had a global point variable controlling the spawn and I used a trigger event called "Unit Uses Ability" to change the direction of the spawning point
My only issue is that this is kinda tedious since I will need to replicate it for each player, but thats for another day.
Hey guys, as the title says. How can I make an ability which changes the spawn location?
What I want to do is to give the player the choice on where to spawn his/her units which can be changed to any of the other points anytime throughout the game. The player needs to click on an ability at a barracks in order to choose the spawning point.
I have setup 3 points for spawning locations, but I am having trouble getting the player to choose his spawning point in the trigger editor. Seems like I can only have 1 spawning location which cannot be changed...
Any help would be greatly appreciated. Thanks!
Thanks a lot buddy!
Here is what I did for those who are interested
Create an ability , effect instant and put that ability onto a building.
Then in the triggers, I had a global point variable controlling the spawn and I used a trigger event called "Unit Uses Ability" to change the direction of the spawning point
My only issue is that this is kinda tedious since I will need to replicate it for each player, but thats for another day.