eshoot <projectilenumber>
Works just like shoot, but returns the sprite id of the projectile into the RETURN gamevar. See eshootvar.