Firing Problem

hi
my game is a third person tank shooter and i am working on the firing.
right now it fires, but the artillery shell model always faces the same direction

ex:
if the player fires in the starting position, it looks normal (the shells pointy end goes first)
but if the player rotates the tank 90 degrees, it will fire the shell in the right direction, but the shell wont be facing the right direction.
how do I fix this problem?
thanks in advance!

probably you dont account in the local rotation while instancing your projectile. Still, no chance to give you a decent solution without actually seeing your code.

heres the firing code so far
i am still working on load time and amunition.

var loaded = true;
var ArtilleryShell:Transform;

function Update () 
{
if(Input.GetButtonDown("Jump")&loaded == true)
	{
		var bullet = Instantiate (ArtilleryShell, GameObject.Find("BulletSpawn").transform.position, Quaternion.identity);
		bullet.rigidbody.AddForce(transform.up*10000);
		loaded =false;
	}
}
var bullet = Instantiate (ArtilleryShell, GameObject.Find("BulletSpawn").transform.position, transform.rotation);

change the above part as shown, your rotation problem will be gone.

thanks, it works perfectly now!
much appreciated!