Transform position

Hello. This is the code I am using to fire a projectile for a 2D game(It just fires the projectile straight up along the z axis). Is there anyway I can have it fire from 10 units along the x axis (so it would be firing straight up from the right of where the object this script is attached to is)? Thanks

var instantiatedProjectile : Rigidbody = Instantiate( 
    projectile, transform.position,transform.rotation); 
instantiatedProjectile.velocity = 
    transform.TransformDirection( Vector3( 0, 0, projectilespeed ) ); 
Physics.IgnoreCollision( instantiatedProjectile.collider, 
    transform.root.collider );

Instantiate the projectile at GameObject.transform.position + Vector3.right*10

Hopefully that works but you get the idea. BTW, your level must be on its side because from your code you are firing the projectile 'Forward'. See here http://unity3d.com/support/documentation/ScriptReference/Vector3.html

If I understand it correctly, then maybe this will do:

instantiatedProjectile.velocity = transform.TransformDirection( Vector3( projectilespeed, 0, 0 ) ); 

Did you mean 10 units right of your object in local space or world space?

var rotation = transform.rotation;
var position = transform.position + Vector3.right * 10;

// Or if you want local offset:
// var position = transform.position + transform.right * 10;

var clone : Rigidbody = Instantiate(projectile, position, rotation); 
clone.velocity = transform.forward * projectilespeed;

Physics.IgnoreCollision(clone.collider, transform.root.collider);