MegaGlest Forum
Archives (read only) => Glest Advanced Engine => General discussion => Topic started by: lazyanttu on 25 January 2012, 18:08:30
-
Is it possible to make homing attacks with particles?
I have an attack which uses projectile to hit target, but it is not intended to be dodgeable. Because the attack skill attacks a tile instead of unit, I understand this is rather difficult.
Is the only way to make it to not include particle? I have unit called Assault Infantry, which fires rapidly (and has trajectory-type particle effect). However, when enemy unit moves, the attack will miss. Is there a way to make the attack instant-hit (like without particles) and then have the particle for visual effect. Btw. have I understood correctly, non-particle attacks are instant-hits?
-
In the projectile particle XML, inside the trajectory tag, there's an optional <tracking value="false" /> tag which may be added (defaults to false). If true, the projectile will attempt to track the unit. However, last I saw, it had a tendency to miss semi-fast moving targets. Either way, tweak around with it and see how it works for you.
https://docs.megaglest.org/XML/Projectile_particle
-
Ok thanks! I'll try it :).
EDIT: Now it works!