unit attack building and anything on the way

  • Thread starter Thread starter insom
  • Start date Start date
I

insom

Guest
Well.. Im new to WE and i have a few questions.

I want to make units spawn and and walk towards a building and attack it (This I have been able to do).

But I'm clueless as to how I can get it to attack any players(hero's) in its way.

The map im trying to make is pretty much, "Protect the building", where the players control hero's.

I would also like the hero's to attack the units attacking the building (as of right now, I have to select "attack" then click on the creeps).

This is what I have so far
Events
Time - Elapsed game time is 30.00 seconds
Conditions
Actions
Unit - Create 10 Bandit for Neutral Hostile at (Position of Circle of Power (large) 0023 <gen>) facing Default building facing degrees
Wait 0.20 game-time seconds
Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Unit - Order (Picked unit) to Attack-Move To (Position of Building 0009 <gen>))

Any help would be appreciated, thanks
 
It should be attack-moving to a region and not a building because they will attack only the building first and then the heroes. What do you mean on the second one? Do you mean they don't auto target the creeps? or do you mean you have to press attack then the unit for them all to attack one unit?
 
"Position of building" is a region (a very small one, but a region).


"Neutral Hostile", normally, isn't allied to anyone, except other "Neutrals".

If a normal player doesn't attack NH on sight,
I would guess you played around with the "alliance" actions.
Just a guess, of course :)
You sure you still have Neutral Hostile as an "Enemy"?


HTH
AceHart
 
Thank you both for the replies.
I've played with some simple stuff, and decided to make the creeps Player 12 and changed the alliance around abit.

Conan: What I was trying to say was, that my hero's did not auto-target the creeps. As you see in many Hero Seiges, the hero automatically attacks the creeps uppon sight.

I have attached the map and hope for some help. Thanks.
 

Attachments

Well, you have:
Player Group - Make (All players) treat (All players) as an Ally with shared vision

And are surprised that your units don't attack? :)


HTH
AceHart
 
Lol, how did i not see that :eek:

I had put that action there because it was the first time i had used WE and i was playing around with the commands. It was supposed to have been removed :P

Thanks alot for pointing it out.

EDIT: I have stumbled across yet another problem. If I use
Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit - Order (Picked unit) to Attack Baphomet 0009 <gen>) , they do not attack the hero in the way.

If I use
Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit - Order (Picked unit) to Attack-Move To (Position of Baphomet 0009 <gen>)) , they do attack the hero's in the way, BUT they do not attack the building.

I am guessing that Attack-Move To means move to region and attack things along the way. Is there an action that is somewhat Attack-attack? eg. Attack a building and along the way, if you see enemies, attack them too.

Thanks
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top