Look at a weapon like the shotgun for code on making a projectile.
This is where I run into trouble. The shotgun codes create the same projectile over again. Sorry if this sounds stupid, but could you give me an example? If my first projectile is called 'primaryprojectile' and the second 'secondaryprojectile', where in the code do I state this?
or
If it's any simplier, making the same projectile do two different actions depending on the distance from the player. I'm thinking something like
function SimplierProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
  if(%distancefromplayer < 100)
  {
   (function1)
  }
  else
  {
   (function2)
  }
}
But how do I state that %distancefromplayer is the actual distance? Again, this may sound very newbish, sorry.
Then again, I might be wrong. Help would be appreciated.
Thanks.