| 04-04-2006, 10:32 PM | #2 |
What is the problem? |
| 04-04-2006, 10:36 PM | #3 |
Lol sorry. Problem is, the invis/locust/no-pathing units created aren't being removed from the game when the unit exits the bunker. |
| 04-05-2006, 12:57 AM | #4 |
Wouldnt modifying orc burrows get the desired effect? And there are problems with removing locust units, arnt there? Or is that only for adding them to groups based on what rect they are in? |
| 04-05-2006, 02:08 AM | #5 |
Since they're getting created okay, I don't think the problem is with the transporting mechanism. Is it something with Locust, you think? |
| 04-05-2006, 02:54 AM | #6 | |
Quote:
I dun believe so. I think it's the Orc Burrows who get their attack enabled and not the peons. And since this is so, he can only get 1 attack-type effect. I think that's why he's triggering in invisible units to make it appear as if there are multiple types of units inside the bunker attacking. |
| 04-05-2006, 08:56 AM | #8 |
You cant pick a unit with locust i.e. pick all units matching... You can do last created unit etc. |
| 04-05-2006, 01:07 PM | #9 |
Hmmm. If I can't "Pick" the unit with locust, I guess that means I have to use an array of units rather than unit-groups? I just assumed the built-in unit-group function would be easier since its sort of a dynamically expanding/contracting array, but if I can't Pick locusted units that's kind of a stupid design flaw. |
| 04-06-2006, 06:39 AM | #11 |
Wait wait wait... "Custom script: (exitwhen ((Custom value of (Target unit of issued order)) Equal to (Custom value of TempUnitArray[counter]))) " This is not proper JASS syntax, and shouldn't work at all. |
| 04-06-2006, 01:15 PM | #12 |
Also he doesnt need to use JASS to make a loop. Just use the "ForEachLoop" function. |
| 04-06-2006, 03:51 PM | #13 |
And just so you don't think I'm a total retard I am planning on re-writing the array method to use something like Array[x*sizeofy+y-1] rather than the ridiculous string method. Anyways... whats wrong with the JASS syntax of the exitwhen condition? Im a total JASS noob :/ |
| 04-06-2006, 08:05 PM | #14 |
JASS:(exitwhen ((Custom value of (Target unit of issued order)) Equal to (Custom value of TempUnitArray[counter]))) I believe custom value is Set/GetUnitUserData. So: JASS:exitwhen GetUnitUserData(GetOrderTargetUnit()) == GetUnitUserData(udg_TempUnitArray[udg_counter]) |
| 04-06-2006, 10:01 PM | #15 | |
Quote:
Although I didn't know the correct function, either. Thanks a million... rep+ :D |
