- Joined
- Oct 30, 2004
- Messages
- 5
In my map, there is an alchimist walking around a square. Below that square, an unit shoots at the alchimist. The missile does not follow the alchimist's movement, it can be only targeted at points. But: When the missile impacts, it should exactly hit the alchimist!
So the unit has to shoot at the position of the alchimist that he will have when the missile arrives. To know that position, I need to know the time between missile spawn and impact... and you get the time with:
Distance between missile start point and target point / Missile speed (700)
So I can only know the time that the missile will fly if I know the shoot distance! But to know the distance, I need to know the time!
Does someone have a solution maybe?
So the unit has to shoot at the position of the alchimist that he will have when the missile arrives. To know that position, I need to know the time between missile spawn and impact... and you get the time with:
Distance between missile start point and target point / Missile speed (700)
So I can only know the time that the missile will fly if I know the shoot distance! But to know the distance, I need to know the time!
Does someone have a solution maybe?