| 07-14-2004, 01:35 PM | #1 |
If I use this trigger in a spell to move a unit to a random location (his location with a random offset), what happens if this place is in the water, or anything like that, is there any way to check what is on the place where he lands, if I use a variable for his location or anything like that? |
| 07-14-2004, 03:26 PM | #2 |
You could move a unit to a location then check if the unit can be found somewhere near the location. It's known as checking success of an operation. |
| 07-15-2004, 09:58 PM | #3 |
i'm pretty sure the game is smart enough to figure out that a unit cannont be placed in water or like on a tree ***however you have to be careful with cliffs*** (make sure there is not enough room to land on them) hope this helps ![]() |
| 07-15-2004, 11:40 PM | #4 |
... It DOES figure out if the unit can be paced there, it's that if it can't place the unit there then it moves the unit to the nearest pathable place which can produce very undesirable results. |
| 07-20-2004, 04:30 PM | #5 |
This may take some time but I beleive it will work. Whereever you have a patch of trees or water or whatever create a region. Event - Unit enters region Condition - Unit Type = (Your Hero) Action - Move Triggering unit to (Region X which will be a designated area for dropping him.) If you map isn't too big you can do this, otherwise good luck finding a new way. |
