AddFireArmsPosition Property

Usage:
   ObjectTemplate.AddFireArmsPosition x/y/z x/y/z

Argument values:

argument 1:    -.5/-0.25/2, -.5/0.25/2, -.63/.5/-1.5, -.63/0.71/-1.5, -0.015/-0.03/0, -0.03/0/0, -0.089/0/0, -0.1/-0.14/0, -0.1/0.14/0, -0.1/0.5/2.7, -0.119/0/0.65, -0.12/0.5/3.9, -0.167/-0.064/-2.862, -0.167/-0.184/-2.862, ...
argument 2:    -.3/0/0, -0.1/0/0, -0.2/0/0, -0.5/1/0, -1.1/0/0, -1.1/4/0, -1.3/-0.4/0, -1.3/0/0, -1.6/0/0, -1/-0.5/0, -89.999/-9.999/0, -90/-10/0, .3/0/0, 0.1/0/0, 0.2/0/0, 0.5/1/0, 0/-0.5/-0.5, 0/-0.5/0.5, 0/-1/0, ...

Description: AddFireArmsPosition sets from where the firearm shoots. Multiple firearm positions can be defined. If SetAsynchronyFire is set to true, the weapon will fire from each position in turn (e.g. the Katyusha). If it is false, the weapon will fire from all positions at once.

Related properties: MagSize, NumOfMag, RoundOfFire

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

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

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

Example: (from objects/Vehicles/Air/Zero/Weapons.con)
   rem *** ZeroGunBarrel ***
   ObjectTemplate.Create FireArms ZeroGuns
   ObjectTemplate.SetNetworkableInfo PlaneFireArmInfo
   ObjectTemplate.LoadSoundScript Sounds/ZeroMG.ssc
   ObjectTemplate.AiTemplate ZeroMachineGun
   rem -------------------------------------
   ObjectTemplate.VisibleBarrelTemplate e_MuzzSG44
   rem -------------------------------------
   ObjectTemplate.ProjectileTemplate ZeroProjectile
   ObjectTemplate.ProjectilePosition 0/0/2
   ObjectTemplate.SetTracerTemplate Tracer_Projectile CRD_NONE/3/0/0
   ObjectTemplate.MagSize 900
   ObjectTemplate.NumOfMag 1
   ObjectTemplate.Velocity 400
   ObjectTemplate.RoundOfFire 12
   ObjectTemplate.AddFireArmsPosition 1.99/-0.21/1.38 -1.3/0/0
   ObjectTemplate.AddFireArmsPosition -1.99/-0.21/1.38 1.3/0/0
   ObjectTemplate.AmmoType 8


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