Attack nearest

  • Thread starter Thread starter CommanderZ
  • Start date Start date
You could order it to attack-move to a random unit around it.

That's not exactly what you're looking for,
but, it's very simple and almost as good as the real thing.

Why would you need that?
 
No, it's not it. I need something, what will order unit on the nearest unit and the target may be veeery distant and i don't know its position.
 
I remember sometning like i want appeared in Tower Wars - attacking creeps are runnig directly on the nearest towers, but is seems, that the map is protected :mad:
 
I think he wants NPC creeps to move to and attack what ever is the nearest PC hostile unit.

Kinda like that map in Frozen Throne where you have to protect the center and the enemy keeps throwing more and more units at you.

Is that what you were looking for ComanderZ?
 
godslayerz said:
I think he wants NPC creeps to move to and attack what ever is the nearest PC hostile unit.

Kinda like that map in Frozen Throne where you have to protect the center and the enemy keeps throwing more and more units at you.

Is that what you were looking for ComanderZ?

No, in this case you (the mapmaker) know WHERE the target is, so you sey "send the creeps into the middle", it's simple

I'll try as said AceHeart, insanely high aq range and command "Order Unit Attack-move to position of the same unit"
 
Whoa, there is a way to find the distance between units. Look for the right unit that has the least distance, and voila.
 
ThE-eNiGmA said:
Whoa, there is a way to find the distance between units. Look for the right unit that has the least distance, and voila.

You mean "Math - Distans between points"?.
A trigger with that condition that is runned a lot will cause massive memory leak if you use that you have to use custom script. And a pick every unit in entire map. Doesnt sound very effective to me.

And if you order the unit to attack its target directly and it is a forest between them? The unit will go around whole the forest to reach its target. If its work it is better to use

<insanely high aq range and command "Order Unit Attack-move to position of the same unit"
 
phyrex1an said:
And if you order the unit to attack its target directly and it is a forest between them? The unit will go around whole the forest to reach its target. If its work it is better to use

forests are not problem. there arent any on my map ;)
 
I tried it. Max aq range is 20000 (its huge number, but it's still not enough for map with one dimension 192 or larger. its from one unit standing at the edge of map to cca 70% of map width) drains cpu time very much (computing target for 20 units blocked my Athlon 2500+ for 2 seconds, even if there were only one possible targed. When there were 600 possible targets, the computer got frozen. :banghead:

It's not a solution.
 
Okay, it is mass TD. Function we are looking for is one of those, which i need for the core. Then i can start filling with data (more towers, more waves, more promotions). The nuke is experimental and will apear later in game.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Bot readable, not human usable.
  • 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