I'm trying to make it so when a buildings health is brought down its changes possession to the player that did the damage, then make it so said building will spawn units on a timer. I can't seem to find anything on it if anyone knows of any tutorials or posts that could help that would be great.
Welcome to Mapster. In regard to your question, I've made a demo map below.
What this map demonstrates is that when you hit the command center with your marines and once the command center's life drops to half of its maximum value, it will change ownership to player 1 and spawns a marine each 30 seconds for 10 rounds.
I hope that this will answer the said request, and if you do have further queries, feel free to ask. Thanks.
tnx for the map and help, i think i should be able to get be able to get it working for my map now. iv been looking for the if then triggers forever as well lol
I'm trying to make it so when a buildings health is brought down its changes possession to the player that did the damage, then make it so said building will spawn units on a timer. I can't seem to find anything on it if anyone knows of any tutorials or posts that could help that would be great.
Hi, there,
Welcome to Mapster. In regard to your question, I've made a demo map below.
What this map demonstrates is that when you hit the command center with your marines and once the command center's life drops to half of its maximum value, it will change ownership to player 1 and spawns a marine each 30 seconds for 10 rounds.
I hope that this will answer the said request, and if you do have further queries, feel free to ask. Thanks.
tnx for the map and help, i think i should be able to get be able to get it working for my map now. iv been looking for the if then triggers forever as well lol
Sounds like you're good, but just in case, here's a video tutorial I made on capturing units when their health reaches zero.
https://www.sc2mapster.com/forums/resources/tutorials/241940-data-capturing-units-when-health-hits-zero