HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Mmm... Pathfinding

01-10-2004, 09:24 PM#1
Hunter0000
Ok, heres the deal. I want someone to make me a simplish pathfinding tool, heres what I want it to do.

There are four bases on the map. I want the computer spawn to follow a system similar to this.

When a computer unit has no order, it sets out to find a path. I want it to attack move to a point about 2000WEUs away, but heres the catch, that point has to be farther away from this computers base than the previous positon, It also should be infuenced to go toward an oposing base if it nears one, even if it ends up violating the above sequence.

I'd even agree to pay some points or whatever to anyone who can help me out with this.
01-11-2004, 12:37 AM#2
Ligature
To make sure the target point is away from the unit's base, just get the angle between the unit's position and the base's position, and have the target point be any point in the 180 degrees centered exactly opposite...

Then I guess you could check if the target point was further from the base or from the opponent - and if the former, have the unit start zeroing in on the opponent.
01-11-2004, 01:46 AM#3
Hunter0000
Can you, or someone actuly write this up in WE though?

Just use 4 fake locations so I can see it realitive, then copy it over.