Examples of velocity you can use (for a projectile) - the examples may or may not be correct or might be overcomplicated, but try the 2nd example and see if that's what you are finding:
//This is an example of how to fling a projectile in a direction the target is (homing) using ImageName::onFire(%image, %player, %slot) - Will have to create own vars other than %player
%vec = vectorScale(vectorNormalize(vectorSub(Vector3F %posA, Vector3F %posB)), int %scale);
//example: vectorScale(vectorNormalize(vectorSub(%player.getPosition(), %targetPlayer.getPosition())), 80);
//Example of shooting from the muzzle's velocity using ImageName::onFire(%image, %player, %slot)
%vec = vectorScale(%player.getMuzzleVector(%slot), %image.projectile.muzzleVelocity);