Create Backup Creeps

Kronic Haze

New Member
Joined
Mar 21, 2005
Messages
1
Reaction score
0
Im making a td, and i would like to make it to where when a creep dies it spawns another of the same time 40 times... i have no clue on how to make a tigger like that... if anyone could help it would be great, also if u need more detail just tell me and i will post more detail...
 

x42bn6

Retired Staff
Joined
Nov 11, 2002
Messages
15,150
Reaction score
2
Location
London, United Kingdom
If you are using custom values for units already, you can't.

But if you aren't, when you spawn a unit for your map, give it the Action:

Unit - Set Custom Value of [Your unit] to 1

Events:
Generic Unit Event - Unit Dies

Conditions:
Unit Comparison Condition - [Dying Unit] //Whatever your conditions may be

Actions:
Unit - Set Custom Value of [Dying Unit] to [Custom Value of [Dying Unit]+1]
If [[Integer Comparison - Custom Value of [Dying Unit] [Is less than or equal to] [40]]] Then [[Create [1] [Dying Unit] at [Position of [Dying Unit]] facing [Default degrees]] Else [Do Nothing]

Or, just give it 40 times more health. :)*
 

NewPosts

New threads

Top