| 11-18-2006, 03:57 AM | #1 |
1. Is it better to Give a unit a expiration timer to get rid of unit, or removing unit when your using a dummy unit? 2. Is there another way doing a unit group in jass besides the way the WE does it? |
| 11-18-2006, 04:09 AM | #2 |
1. Generic Timers are better but I perfer removing the, 2. Don't understand this one but I think you can still create unit groups in JASS or WE. -Av3n |
| 11-18-2006, 04:15 AM | #3 |
2. What do you mean? To create unit groups there are many ways I think. |
| 11-18-2006, 04:15 AM | #4 |
As to the second one, I'm not completely sure but I think you are referring to this: http://www.wc3jass.com/viewtopic.php?t=1998 |
| 11-18-2006, 08:48 AM | #5 |
1. I tend to use expiration timers, so that I can add it, tell the dummy unit to cast, then forget about it. If you use the remove native, you have to wait for it to have casted. 2. From the group api of common.j: JASS:native CreateGroup takes nothing returns group native DestroyGroup takes group whichGroup returns nothing native GroupAddUnit takes group whichGroup, unit whichUnit returns nothing native GroupRemoveUnit takes group whichGroup, unit whichUnit returns nothing native GroupClear takes group whichGroup returns nothing native GroupEnumUnitsOfType takes group whichGroup, string unitname, boolexpr filter returns nothing native GroupEnumUnitsOfPlayer takes group whichGroup, player whichPlayer, boolexpr filter returns nothing native GroupEnumUnitsOfTypeCounted takes group whichGroup, string unitname, boolexpr filter, integer countLimit returns nothing native GroupEnumUnitsInRect takes group whichGroup, rect r, boolexpr filter returns nothing native GroupEnumUnitsInRectCounted takes group whichGroup, rect r, boolexpr filter, integer countLimit returns nothing native GroupEnumUnitsInRange takes group whichGroup, real x, real y, real radius, boolexpr filter returns nothing native GroupEnumUnitsInRangeOfLoc takes group whichGroup, location whichLocation, real radius, boolexpr filter returns nothing native GroupEnumUnitsInRangeCounted takes group whichGroup, real x, real y, real radius, boolexpr filter, integer countLimit returns nothing native GroupEnumUnitsInRangeOfLocCounted takes group whichGroup, location whichLocation, real radius, boolexpr filter, integer countLimit returns nothing native GroupEnumUnitsSelected takes group whichGroup, player whichPlayer, boolexpr filter returns nothing |
| 11-27-2006, 11:52 PM | #6 | |
Quote:
my question was how to do unit groups besides the was WE converts Unit Groups in GUI. Sry for the confusion |
