• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to make peon build hall next to gold mine

Status
Not open for further replies.

Deleted member 219079

D

Deleted member 219079

There's the minimum distance of hall and gold mine, trees and stuff that makes it hard to know available coordinates for hall :/

Also how could I save these coordinates for later use, I bet it causes some stress on CPU to calculate it again and again.

To better visualize my problem:
attachment.php
 

Attachments

  • asdf.PNG
    asdf.PNG
    1 MB · Views: 174
Level 12
Joined
Feb 22, 2010
Messages
1,115
If are your gold mines are in a spot like that, just control 8 points one by one with 45 degree each and 400-600 whatever range from goldmine, the first point without a tree in 400 aoe is your building point.
 

Deleted member 219079

D

Deleted member 219079

Oh that's kind of simple... thanks :)
 
Level 15
Joined
Nov 30, 2007
Messages
1,202
a easy way to detect if its placable is to have a dummy builder build it. You would loop through the build coordinates and exitwhen it stats to build. You would have to detect it through a event.

or you could create your locations before game, if it is to run at initialization you could just place preset random locations and pick one.

Start Location 0
0
1
2
Start Location 1
0
Startloation 2
0
1

etc.
 
Last edited:
Status
Not open for further replies.
Top