HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Make a unit totally unselectable without locust

05-14-2007, 01:44 AM#1
PandaMine
Basically I want to make a unit totally unselectable without using the locust ability i.e.

1) It doesn't appear on the minimap
2) cannot be selected with mouse/cursor
3) Has no collision (can be done with ghost or SetUnitPathing function)
4) Enemy units will not auto acquire it (i can trigger this myself)

The reason I want to do this without the locust ability, is I want the unit be totally invisible but still take damage from AoE (such as flame strike) and line spells (like shockwave). I was wondering if this was possible through JASS/Object Editor. Another approach would be to simply give the unit the invisible ghost ability and trigger every ward/spell that reveals enemy units so that it wont reveal the unit with the invisible ghost ability, this however would only be a last resort
05-14-2007, 01:57 AM#2
Mezzer
Do the following:
- Give it a fly height of about 5000, that makes it nowhere near selectable (or visible), and anything that cares for it's location can still get it nicely (make sure it can move and flies)
- Turn on the 'No minimap icon' thing in the object editor
- Set it's collision to 0

That should get you what you want.
05-14-2007, 02:40 AM#3
PandaMine
If u make a unit fly with 'amrf' (mediva's crow form ability) is it still technically counted as a flying unit when you select targets in the object editor (i.e. will ground spells no longer hit the unit)
05-14-2007, 03:12 AM#4
Dil999
What you need to do is change Combat - Targeted as to ground, i believe