HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Disable Auto Attack = Possible?

07-10-2007, 08:26 PM#1
TripX
Hello there!

I've got another problem.
Since I'm making a survival map, it would be really great if I could disable that auto attack of units.

You know :
- when you get near to something, your unit starts shooting at the nearest enemy if he can see him.

Since I want to make monsters in my map that will hide with their mimic capabilities from the eyes of the player, I would really need to disable that thing.

Is that possible?

R n R ~ Christina
07-10-2007, 08:31 PM#2
sas_Skorpion
Try setting the Aquisition range to 0 :D or 1
07-10-2007, 08:41 PM#3
Alexander244
If you add the worker classification to a unit, it won't auto-aquire targets; to get it so you don't get the idle worker icon, add it after the unit is created:
call UnitAddType(u, UNIT_TYPE_PEON)
I think you can also do something with permenant invisibility, there is a field that sets auto-aquire of targets to false. Then you set the duration to -1 so the unit does not become invisible
07-10-2007, 09:52 PM#4
Tide-Arc Ephemera
Quote:
Originally Posted by sas_Skorpion
Try setting the Aquisition range to 0 :D or 1

That will disable attack altogether.

Quote:
Originally Posted by Alexander244
If you add the worker classification to a unit, it won't auto-aquire targets; to get it so you don't get the idle worker icon, add it after the unit is created:
Collapse JASS:
call UnitAddType(u, UNIT_TYPE_PEON)
I think you can also do something with permenant invisibility, there is a field that sets auto-aquire of targets to false. Then you set the duration to -1 so the unit does not become invisible

Worker classification would, indeed, disable automatic target acquisition.

Permanent Invisibility would only work of the unit is in fact invisible.

The easiest way to do this would be to add Worker classification.

Though, if you mess with Wander or Tornado Wander, those two abilities also deactivate auto targeting.

I don't think you can change Wander's stats, but just set all of Tornado Wander's to 0 or something.
07-11-2007, 07:59 AM#5
TripX
Great thanks :)

+ Rep to all who helped...

CnC ~ Chrina