HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help with invis unit

08-06-2003, 04:15 AM#1
Newbieff
i want to know, how can u make a unit NOT selectable
08-06-2003, 07:43 AM#2
Neo_Genesis
I havent found a good way to make a unit totaly unselectable (other then making it a doodade, in which case its not a unit anymore)

but you can use a trigger to unselect it and give people the idea not to mess with the unit.

The trigger is

Events
|->Player - Player 1 (Red) Selects a unit
Conditions
|->Unit - Unit type of(triggering unit) Equal to "unit_Type_here"
Actions
Selection - Remove (Triggering unit) from selection for (Triggering player)

If anyone has a better way, I would like to know too.

Hope that can help you though

Neo_Genesis
08-06-2003, 07:46 AM#3
Coffein
Quote:
Originally posted by Neo_Genesis
I havent found a good way to make a unit totaly unselectable (other then making it a doodade, in which case its not a unit anymore)

but you can use a trigger to unselect it and give people the idea not to mess with the unit.

The trigger is

Events
|->Player - Player 1 (Red) Selects a unit
Conditions
|->Unit - Unit type of(triggering unit) Equal to "unit_Type_here"
Actions
Selection - Remove (Triggering unit) from selection for (Triggering player)

If anyone has a better way, I would like to know too.

Hope that can help you though

Neo_Genesis


By using that method the player can still see the uni, for a small amount of time. But I don't know a better solution either.
08-06-2003, 08:01 AM#4
DemonicSoul
giving the unit no model will do it.... but thats not a very good solution

and the method suggested seems to have a lag time
08-07-2003, 02:16 AM#5
Newbieff
giving the unit no model seems to still be able to be selected with "drag-select"
08-07-2003, 08:27 AM#6
Krakou
Give the unit to one of the neutral and set the right alliances.
08-07-2003, 08:30 AM#7
BladeBezerker
Selection scale - 0.00

in the object editor
08-07-2003, 08:30 AM#8
junithorn !
Karkou, that wont help his problem at all.
Setting it to no model works but yes its still drag-selectable. Units that arent owned by the player are harder to select.