| 02-18-2005, 09:10 PM | #1 |
how do u detect if a unit has classification 'tauren'? |
| 02-18-2005, 09:14 PM | #2 |
Guest | Look in boleean conditions, theres one called "unit classification" or something like that (I remembered using it with mechs on one of my maps) |
| 02-19-2005, 01:24 PM | #3 | |
Quote:
|
| 02-19-2005, 04:32 PM | #4 |
You'll have to do something like putting all your tauren unit-types in an array and looping through that when checking. Like this: Event: A Unit Dies Conditions: None Actions: For Integer A=1 to <number of tauren unit types> do If Unit Type of (Dying Unit) is equal to TaurenTypeArray[Integer A] Then send text message to all players: A tauren just died! Else do nothing. |
| 02-19-2005, 05:00 PM | #5 | |
Quote:
|
| 02-19-2005, 05:36 PM | #6 |
Guest | Just classify the taurens as something else. Lets just say suicidal: Change all the 'Stats - Unit Classifaction' in the unit editor to suicidal for all the taurens. Then you can find the classifaction 'a sapper' in the boolean conditions - Unit Classification Check. |
| 02-19-2005, 06:30 PM | #7 |
Make a unit-type array and put all of the tauren units in that and loop through it when you wish to check. There are other ways, such as assigning custom values, but that is the easiest and more efficient. |
| 02-20-2005, 09:24 AM | #8 |
Guest | What editor do you use??? My normal TFT WE of latest patch has a list which contains: worker, mechanical, suicidial... etc... and tauren |
| 02-20-2005, 12:19 PM | #9 | |
Quote:
|
