also, missiles don't fragment on direct hits, but that's a different topic completely.
here's the important bit, the rest is devoted to deciding what to do.
Code: Select all
(block Nil
(sysCreateWeaponFire (objGetData gSource "sweapon") gSource (objGetPos gSource) (intVectorAngle gSource (objGetTarget gSource)) 40 (objGetTarget gSource) False)
(objRemoveItem gSource (itmCreate (objGetData gSource "sweapon") 1) 1)
)