Taking a guess on the arguments, they may not be correct :
function WeaponImage::onFire(%this,%obj,%slot)
{
%obj.setVelocity("0 0 20");
}
Change WeaponImage to the image name of your weapon
Launching them straight up will look kind of wierd, especially if you shoot straight up.