| 01-16-2009, 01:23 PM | #1 |
I have a trigger which keeps track of all non structure units on my map. The problem is that dummy casters and locusted units are also adding to the unit count. Thus I set a condition to ignore dummy units, the only issue is that my condition checks for 'Unit Type". So I have to state the name of every dummy unit in game in the condition list. I soon realised that my list of dummies was getting too long and that I need a new condition. I need to know is it possible to check if a unit has the "locust' ability, Ive heard some where its not. |
| 01-16-2009, 01:47 PM | #2 |
Add some ability that do nothing and have no display in UI to every dummy unit. Then check for this ability. This is "bad" way, you can do anything best having only one dummy. |
| 01-16-2009, 03:08 PM | #3 |
Ive tried as much as possible to use 1 dummy. However alot of the dummies im using exist for creating Sfx and so on so I have had no choice but to usemany dummies for this. |
| 01-16-2009, 03:10 PM | #4 |
you can use dummy model with attach points to create effects you like. |
| 01-16-2009, 03:13 PM | #5 |
I fully recommend just creating a dummy ability that you add to any dummy unit you want to ignore and then GetUnitAbilityLevel(GetFilterUnit(), DUMMY_ABIL_ID) > 0 to remove them from filters. |
| 01-17-2009, 02:19 AM | #6 |
Thanks everyone for the imput,. Although I did fing my own way around the problem. |
