In the attachment below, you'll find a demo mission with a script for RPG/Law/etc. loonies to shoot un-armored units with their secondary weapons.
It uses a "fired" event handler, calculates each unit's estimated number of rockets left, and comes with the "weapon" animation.
I'd like to beta-test it, because I know you folks will find ways to improve it.
For I have problems with :
* loonies targetting loonies that are at a different altitude. Even though I use the velocity of the latest shot bullet (divided by 10), there is no way I can get the rocket to go higher or lower than its source ;
* reloading animation : what is the move for reloading RPGs/Laws ?
Thanks in advance for your help, any constructive criticism is warmly welcome.
Igor Drukov