HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Keep unit from being selected in groups?

08-26-2004, 04:08 PM#1
General Tekno
In a map im making, in order for the buildings i created to have variable movement heights, I had to uncheck the "is a building" property in WorldEdit. However, because of this, the building is selected along with my other units in the map. Is there a way to fix this via triggers so that the building has the same selection properties as other buildings that actually have "is a building" checked? If so, could you please tell me how?
08-26-2004, 04:20 PM#2
Vexorian
The ward unit classification....
08-26-2004, 05:58 PM#3
Oo.h3ih02.oO
Maybe check if the unit is selected then check if any other units are, then use the deselect unit trigger.
08-27-2004, 01:30 AM#4
AFB-DieHard
use somthing like

Code:
Event
Unit - BLAH Is selected

Condition
(Number of units in (Units in (Entire map)(((Matching unit) is selected by (Triggering player)) Equal to True))) Greater than 1

Action
Selection - Remove (Triggering unit) from selection for (Triggering player)