HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Make building or unit unclickable

08-29-2007, 04:14 AM#1
Salbrismind
Hey, i think i know how. I heard before about a spell or something called locust and putting that on the unit makes it unclickable. Any ideas?
08-29-2007, 04:34 AM#2
SuperLoser
Yes, using Locust makes the building or unit absolutely unselectable, so no one would be able to click or harm the building/unit if I recall correctly. It doesn't appear in the GUI trigger for adding or removing abilities, nor does it appear in the Object Manager's Ability tab, so I'm not sure how you plan on dealing with it in-game and I doubt you want to apply Locust to important buildings or units.
08-29-2007, 05:28 AM#3
Anopob
Yes, it IS called locust. As SuperLoser said, you can't apply it or remove it with triggers (unless you transform the unit or something), so just add it normally with Object Editor. It makes the unit unclickable and any unit is able to walk through it.
08-29-2007, 07:07 AM#4
Ammorth
You can damage locust units with area of effect spells, if I am not mistaken. But it doesn't hurt to give it invulnerability.
08-29-2007, 10:32 AM#5
Toadcop
Quote:
You can damage locust units with area of effect spells, if I am not mistaken
locust makes units invulnerable.
08-29-2007, 12:15 PM#6
NightBreeze
Toadcop is right, you have to be very careful with adding the locust ability to a unit since it brings about all sorts of side-effects.
08-29-2007, 12:25 PM#7
sas_Skorpion
If u want vulnerable you remove the invulnerability with a trigger or you can either not add the locust ability just make the selection circle to 1 (i don't think u can put to 0) so it can be only click by dragging
08-29-2007, 05:28 PM#8
Salbrismind
I cannot find locust in any of the tabs. (Abilities,buffs/effects)
The only thing even close to it is the locust swarm ability on dreadlord.
Where is it? I have tft WE not WEU BTW.
08-29-2007, 06:14 PM#9
Anopob
It's an ability, and I also don't think you can edit it. If you want a locust unit that is vulnerable, then don't use locust. Otherwise, just apply Locust with the normal spell tab in the Object Editor of the unit.
08-29-2007, 06:48 PM#10
PenguinEmperor
If you want something to be unselectable, make a trigger that when the object in question is selected, it gets deslected instantly.
08-29-2007, 07:14 PM#11
Ammorth
Using locust in combination with a chaos morph ability can allow the unit to be attacked and acquired by units, but to not be selected.
08-29-2007, 10:58 PM#12
Dil999
Quote:
As SuperLoser said, you can't apply it or remove it with triggers (unless you transform the unit or something)
Collapse JASS:
call UnitAddAbility(u,'Aloc')
call UnitRemoveAbility(u,'Aloc')

Quote:
If you want something to be unselectable, make a trigger that when the object in question is selected, it gets deslected instantly.
It still takes about half a second to deselect.
08-29-2007, 11:29 PM#13
Salbrismind
Thanks, for all your help i found the ability in question. Not sure if it works yet but i'm confident it will!

-Thanks, Salbrismind
08-30-2007, 09:23 AM#14
HotClaw
Quote:
Originally Posted by Dil999
Collapse JASS:
call UnitAddAbility(u,'Aloc')
call UnitRemoveAbility(u,'Aloc')
Omg you're so smart...the removal part doesn't work. Try it.
08-30-2007, 10:07 PM#15
Salbrismind
Thanks you've solved this problem. (I just needed to find locust :P )