HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to turn off auto-attack and Guard Postions?

08-12-2009, 08:54 AM#1
CarrotBubble
Hi, I just joined this forum
So I'm making a map, and I can't seem to figure certain thing...

When my unit notices a target in range, it automatically attacks it. I don't want it to do so.
I've tried to change the Combat - Acquistion Range in Object Editor to 0.00 or to 0.01, but this doesn't work. I realize I could change the unit into a worker, but I don't want to do so, because there is an icon in left-bottom corner if I do so.
Can I do this somehow?

Another problem is, when I order an unit to move somewhere via triggers, the unit will change its mind after a while and returns to its original postion. Is there a way to make it obey my orders?
Thanks for any answers :P
08-12-2009, 12:10 PM#2
Opossum
Try giving that unit permanent invisibility with a fading time of -1 and auto-acquisition (or something like that) off.
08-12-2009, 04:58 PM#3
Earth-Fury
Quote:
Originally Posted by CarrotBubble
I realize I could change the unit into a worker, but I don't want to do so, because there is an icon in left-bottom corner if I do so.

Add the worker classification to the unit(s) at runtime using triggers, and the icon will not appear.
08-13-2009, 02:14 AM#4
midiway
Quote:
Originally Posted by Earth-Fury
Add the worker classification to the unit(s) at runtime using triggers, and the icon will not appear.
I don't think it's gonna work, however the opposite will. Set the worker classification to the unit, and to remove the 'idle icon', just use call UnitRemoveType( myunit, UNIT_TYPE_PEON )
08-13-2009, 10:49 AM#5
Opossum
Worker classification however is not really 100% safe either. Workers will still auto-attack other workers.

That invisibility method worked for me nicely. I'm not sure if it stacks with other invisibility effects though.