| 10-06-2005, 08:25 PM | #1 |
Hello again all happy faces ![]() I am working on a map, in wich you should be able to zoom in and out with the ESC button, but, for instance, you have a building and training units, and want to cancel the training... then the view will be zoomed out. To the point: How do I make a trigger that checks if the triggering player has a building selected? ![]() |
| 10-06-2005, 08:40 PM | #2 | |||
i don't have world edit open right now so it may be kinda off Quote:
Quote:
Quote:
|
| 10-07-2005, 08:54 AM | #3 |
you can also use a condition with a unit group. if (number of units in (units selected by (player)) > 0 then ... that way you can figure out which unit is selected by the player. but if he selected more than one unit the camera thing could do strange things. you could add a condition like 'if (picked unit) is a buildeing then ...' |
