ProjectilePosition Property

Usage:
   ObjectTemplate.ProjectilePosition x/y/z

Argument values:

argument 1:    -0.002/0.01/5.662, 0.1/-0.15/0.01, 0.1/0/0, 0/-.2/.53, 0/-0.1/0, 0/-0.35/0, 0/-0.4/-0.2, 0/-0.4/0, 0/-0.45/0, 0/-0.5/-0.2, 0/-0.5/0.3, 0/-0.6/0, 0/-0.6/2, 0/-0.8/-0.2, 0/-0.8/0.3, 0/-0.95/0, 0/-1.5/3.55, ...

Description: This is where the projectile "spawns" when you shoot, relative to the weapon/soldier position. For example, if the gun is at 0/0/2 and ProjectilePosition is set 0/0/4, then the projectile will spawn at 0/0/6 relative to the vehicle's location. For the Sherman, it is set to 0/0/0 as the the "cannon object" is already positioned at the end of the barrel. On the Mustang, the bomb spawns -0.45 below the "bombdummy", which is located underneath the plane. The -0.45 accounts for the radius of the bomb.

Related properties: ProjectileTemplate

Used in object types (and how often in each type): FireArms (92%), HandFireArms (87%)

Used in a total of 174 .con files: Objects.con, Weapons.con

Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/HandWeapons, Bf1942/Levels

Example: (from objects/Vehicles/Land/Sherman/Weapons.con)
   rem *** ShermanGunBarrel ***
   ObjectTemplate.Create FireArms ShermanGunBarrel
   ObjectTemplate.SetNetworkableInfo TankFireArmInfo
   ObjectTemplate.LoadSoundScript Sounds/ShermanCannon.ssc
   ObjectTemplate.Geometry Sherman_Canon1_M1
   ObjectTemplate.AiTemplate ShermanMainGun
   rem -------------------------------------
   ObjectTemplate.AddTemplate e_MuzzPanz
   ObjectTemplate.SetPosition 0/0/0.5
   ObjectTemplate.SetRotation -179.999/0/0
   rem -------------------------------------
   ObjectTemplate.ProjectileTemplate ShermanProjectile
   rem ObjectTemplate.projectilePosition 0/0/1
   ObjectTemplate.ProjectilePosition 0/0/0
   ObjectTemplate.MagSize 30
   ObjectTemplate.NumOfMag 1
   ObjectTemplate.Velocity 100
   ObjectTemplate.AutoReload 1
   ObjectTemplate.Reloadtime 0.35
   ObjectTemplate.RoundOfFire 0.35
   ObjectTemplate.FireingForce 110
   ObjectTemplate.RecoilSpeed 10
   ObjectTemplate.RecoilSize 3


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.