| 05-04-2003, 04:51 AM | #1 |
in a trigger i made i want to select all but 2 units in a region so i did; Selection - select units (in region) Selection - remove unitA (from selection) Selection - remove unitB (from selection) now to remove all the other units selected do i just say remove matching unit or is there another action i should be looking for? |
| 05-04-2003, 04:54 AM | #2 |
Guest | are the remaining units the same units or different units? |
| 05-04-2003, 05:12 AM | #3 |
different so i was thinking maybe use picked units instead of matchin... will it work? |
| 05-04-2003, 05:13 AM | #4 |
Guest | maybe i cant be sure so you would have to just try it. |
| 05-04-2003, 05:31 AM | #5 |
Picked unit is used when you do: Pick Every Unit in UnitGroup and Do Action (picked unit will refer to the unit that is being picked at the time) Matching Unit is used when you use the boolean: Unit Matching Condition (condition), matching unit will refer to the unit that matches your set condition. i dont quite follow what you want to accomplish though... You want to remove all units from the players selection? there is a selection clear action... |
| 05-04-2003, 06:00 AM | #6 |
all that clear does is deselect all the units so i am lead to believe by the WE descriptions |
| 05-04-2003, 07:55 AM | #7 |
Ice, When you use Select, it will Select the units for player X. If you pick, it will pick it for the trigger, and the player wont notice a thing. Select everything on map doesn't work, either. |
| 05-04-2003, 03:22 PM | #8 | |
Quote:
no, selection actions select for all players, you cannot make a selection action for a specified player without using some JASS |
| 05-04-2003, 05:03 PM | #9 |
I was trying to make a "remove" command for a map of mine. I did: Event: Player bla bla types bla bla Action: Select all units in region bla bla owned by triggering player Remove selected units Above select the units and did jack. I mean, selected them for player bla bla, in this case. I used pick units later, but, heh, I didn't know that back in those days. See my point? Use pick. |
| 05-04-2003, 10:16 PM | #10 |
yes i realised that i had to use pick, but theres still a problem. I want it to pick all units of type unitA, B etc for that particular player so I did by player owner of specific unit, I can't remember what went wrong im not infront of it at the moment so I will try triggering player although it may not be for the correct event |
| 05-05-2003, 01:22 PM | #11 |
Pick all *bla bla units* owned by player X and do remove picked units...? |
| 05-07-2003, 10:00 AM | #12 |
i actually did that for player 1-8 and for some reason it crashed the game... i gotta proof read through it to find out why |
| 05-07-2003, 12:08 PM | #13 |
Why not use: Pick all units in region and add picked unit to UnitGroup then remove unitA from UnitGroup remove unitB from UnitGroup Pick all units from UnitGroup and do remove picked unit from the game However, I heard that removing a unit from a game simply caches the unit somewhere else in game and will cause lag if too many units are "removed from game". |
| 05-07-2003, 12:44 PM | #14 |
Nope, that's killed. Removed actually REMOVES THEM FROM THE GAME. Making them unavaible at all times. |
| 05-07-2003, 04:45 PM | #15 |
if you remove a unit, you can still access it somewhat, its not totaly removed from memory. |
