How do I stop auto attacking on sight?

Werdoo

New Member
Reaction score
0
Hi!

I'm trying to prevent my units from attack as soon as they see an enemy. I want them to attack only when the owner orders them to. I searched a little and found this thing called aquisition range. My trigger is:

Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Unit - Set (Picked unit) aquisition range to 0.00

This has, however, no detectable effect on the units. They still attack if i place them near enemies.

Happy for help :)
 

Samael88

Evil always finds a way
Reaction score
181
you could change their line of sight, that should make them almost blind aswell tho, but it should serve your purpose well:)
 

HellCraft

Member
Reaction score
19
Events - Unit is issued an order targeting a unit - 'smart'
Actions - Order unit to 'stop'

Not sure if it would work, but you can try it.
 

Grags_1977

Ultra Cool Member
Reaction score
32
I tried this a long tme ago with a map I was making, I searched upo and down this forum and couldn't find any ways of doing it the way I wanted it to work.

Events - Unit is issued an order targeting a unit - 'smart'
Actions - Order unit to 'stop'
Doesn't work :(

The only other way (I know off) is change the unit to a worker, but this was even worse than auto attack for me, if the units attacked he'll flee. I just wanted the unit to stay put and do nothing until told to.
 

Werdoo

New Member
Reaction score
0
My units mustn't be blind.

What's the purpose with aquisition range if it can't be used this way?
 

wellwish3r

wishes wells.
Reaction score
52
I tried this a long tme ago with a map I was making, I searched upo and down this forum and couldn't find any ways of doing it the way I wanted it to work.

Doesn't work :(

The only other way (I know off) is change the unit to a worker, but this was even worse than auto attack for me, if the units attacked he'll flee. I just wanted the unit to stay put and do nothing until told to.

did you try making it a worker, and disabling "Can Flee"?
 

Werdoo

New Member
Reaction score
0
did you try making it a worker, and disabling "Can Flee"?

I think that disabling that would make the peasant stand up for itself instead :D

Isn't there anyone out there who've actually succeeded in doing this? Please, let your voice be heard!
 

hugahug

New Member
Reaction score
3
Set your units type to Worker
It wont attack but for evrey untit u have a workers icon appeasr in left croner...
 
Reaction score
149
If I remember correctly, adding and then removing worker classification via trigger works well too, so you don't have that nasty icon.

Haven't used WE for awhile thou, might be wrong.
 

DonRoman

New Member
Reaction score
5
Just a suggestion, but you can set the alliance type ( or is it called aspect? ) of the players to "Alliance - No Attack" (dont know the english name XD). That way the will stop auto attacking.

However you now have to press "A" to attack units, to prevent this you can create a trigger:

Events - Unit is issued an order targeting a unit
Conditions
- Unit is an Enemy
- Issued order = order smart
Actions
- Turn off this trigger
- Issue triggering unit to attack target unit of issued order
- turn on this trigger

hope it helps ;)
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,704
Why turn off and then turn on the trigger? It seems logically the same as without the turning on/off triggers.
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,704
Huh? I see...I thought events occur by player interactions.
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
If you order the unit to attack by triggers, it doesn't register the event as an order of type "smart". DonRoman is wrong, you don't have to disable and enable the trigger.
 
General chit-chat
Help Users
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top