| 02-14-2007, 08:32 PM | #1 |
Hey, I'm having some problems with a map I'm working on atm. One of the things I need to do is when a transport enters a region, perform an action on all the units that are inside it, and the right unit type. I've tried a couple of things, and nothing I try seems to work. What appeared most likely was something like this: Trigger: Unit Group - Pick every unit in (Units in some_region <gen> matching (((Picked unit) is being transported) Equal to True)) and do <some action>However, that doesn't work. And other attempts also failed... So, units that are in transports are not caught by those picking triggers..? Anyone any ideas on what I'm doing wrong, or what I can do instead to get the results I want? EDIT: Ok, I've found a solution now. I'm just checking every single unit of the correct type, and then checking if they're in the transport that entered the region, which works, even though it seems the strangest, most round-about way I could possibly do it. |
| 02-16-2007, 12:56 AM | #2 |
Um, you could of just changed the Picked unit (after the "matching") to Matching unit, but whatever works better for you. |
| 02-16-2007, 01:18 AM | #3 |
Err, as I understood it, matching signifies a boolean condition of some kind, in this case, if the unit picked in 'Pick every unit in...' is being transported... I don't see anywhere where matching unit would return anything meaniful to the function... =S Am I missing some fundimental way that the WE works..? |
| 02-16-2007, 01:54 AM | #4 |
it would be matching unit because When you say Pick every unit matching a condition. You then need to compare the unit you want to match, to something. So you would use: Matching unit is ______ equal to true/false Picked unit is used inside the actual unit group loop, for the units that were picked. |
| 02-16-2007, 08:11 AM | #5 |
Ah. I understand how it works now. Seems a bit of an odd way to do things, and sure had me and my brother wondering what was happening, but oh well. =P |
