| 12-23-2003, 04:52 AM | #1 |
Okay, I posted this in the Jass/AI forum, but it doesn't seem to get much traffic (and it fits in this forum as well), so, here is my question. Is there any way to make a specific unit type ignore trees when deciding what path to take to get from point A to B. He should'nt go through the trees or anything, I just want them to not be seen as "in the way" to the pathing engine... I think that I got the point across... thanks. |
| 12-23-2003, 06:17 AM | #2 |
if he is flying then he ignores trees, but then he ignores cliff's and everything else, it can be be fixed by air pathing blockers but that messes up other air units, if there are no toher air units in the game/map then make him rlying and put pathing blockers, if there is then.... im not totally sure |
| 12-23-2003, 06:19 AM | #3 |
That has the side effect of making the unit uh.. well, flying. But this makes me wonder, why would you want something to path through trees if you don't want it to actually walk through them? |
| 12-23-2003, 08:39 AM | #4 |
Maybe because it kills any trees it comes near? (of course, then it could just as well walk through them too...) |
| 12-23-2003, 07:17 PM | #5 |
Yes, he does destroy any trees that he comes near, but the game happens to NOT know that. So, he will still attempt to take the long way around the trees. It works okay, but you have to click multiple times just to get the unit to actually take the desired path through the trees . |
| 12-23-2003, 07:23 PM | #6 |
You could have a trigger which activates when the unit is given a move order, which just remembers that unit's destination and periodically gives it move orders to move in that direction a short distance... |
| 12-23-2003, 07:31 PM | #7 |
the hero for tft.. named akama can walk throgh trees.. just use his model for the base unit and change the model of it.. that should work. |
| 12-23-2003, 08:00 PM | #8 | |
Quote:
The pink pathing is pink pathing for all units... There's nothing in the game that can distinguish between a square that's pink-pathed because it's a tree and a square that's pink-pathed because it's a rock. Actually that brings up a good idea though: do you need this kind of unit to NOT be able to swim? Because you could make custom trees that have cyan pathing, which would allow both swimming and flying units to pass through - then let this unit swim, and voila! You could even use pathing blockers to make the water off-limits, but it would mean that it would be off-limits to all other swimming things too. |
| 12-24-2003, 01:19 AM | #9 |
That would definately be a possibility... how would I make trees that are cyan pathing? |
| 12-29-2003, 12:24 AM | #10 |
Change their pathing map in the editor. I don't know whether there's a 2x2 cyan map... you may have to make your own .tga and import it. |
