I need some way for a specific missile to run <onFireWeapon>. It can get used by multiple launchers and so I'd rather not have to put the script in every launcher, especially since multiple missiles need these scripts.

george moromisato 21 Jun 2015:

aWeaponType should be the ammo type (not the launcher type). You can do something like:

<OnFireWeapon>
   (typFireEvent aWeaponType 'OnFireWeapon { ...data...})
</OnFireWeapon>

Your missile will get called at OnFireWeapon and you can do whatever you want.

wolfy 22 Jun 2015:

Ultimately this is a work-around, which for the moment is relatively ok since to add ammo to a launcher you must overwrite that launcher, but once launchers can specify attributes to select which ammo they will use, this should be automatically supported under the hood at the engine level, so that a launcher without this script does not need to be over-written or touched in any way.

george moromisato 22 Jun 2015:

That makes sense. When that day comes, we can re-open this.