{
%projectile = TANKSHELLProjectile;
%p = new Projectile()
{
dataBlock = %projectile;
initialVelocity = "0 0 0"; //shell direction and speed
initialPosition = %obj.getPosition(); //shell launch position
sourceObject = %obj.TankerOwner.player;
sourceSlot = %slot;
client = %obj.TankerOwner;
};
PLEASE HELP
Change the velocity numbers to what you need.
initialPosition = %obj.getPosition(); //shell launch position
sourceObject = %obj.TankerOwner.player;Um, this looks like you are firing from the player that controls the tank.
Also there could be a line somewhere that when you dismount, the projectile automatically explodes. You need to get rid of this so you don't fire an automatically exploding shell in your face.
Also you will need to make sure that the shell matches with the size of your tank. Using the tank shell from a tank half the normal one's size would be ridiculous.