Jump to content


Photo

How to get a projectile to hit multiple targets?


  • Please log in to reply
2 replies to this topic

#1 Madin

Madin

    title available

  • Hosted
  • 686 posts

Posted 03 August 2014 - 06:00 PM

I would like to do a weapon that fires a projectile that after it hits an enemy can re-target and hit another enemy if they are in range, or after the initial impact another projectile is fired from the source of impact if an enemy is in range.

This is similar in principle to the RA2 Prism tanks beam which would ricochet of a target and hit nearby enemies.

Can anyone think of a way to get this to work?



#2 GDICommando

GDICommando
  • New Members
  • 4 posts

Posted 14 October 2014 - 07:35 AM

It is possible, you can do that by creating a new invisible object (use object creation list) each time the projectile hits an enemy, this invisible object should be able to attack, it will naturally attack a new enemy unit, and since its invisible, it will look like your main unit/tank projectile 're-targets'  and hits the next unit. After that this object kills itself (use life time update). And all this happens in less than 1 second.

You can hit as many units as you want.


Edited by GDICommando, 14 October 2014 - 07:41 AM.


#3 Madin

Madin

    title available

  • Hosted
  • 686 posts

Posted 14 October 2014 - 08:18 AM

Thanks for the information!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users