FireArms Type
The FireArms object type is created by ObjectTemplate.Create.
The Firearms type allows you to add weapons to any vehicle or stationary object.
A firearm must be added to a PlayerControlObject in order to be fired, but the firearm
describes which inputs are used to fire it. This also means that multiple firearms can be
added to a single PlayerControlObject.
Weapons definitions are normally found in the Weapons.con file
located with a vehicle or stationary weapon.
Firearms cannot be used as hand weapons. In order for the soldier to run around with an object
as a weapon, you must use the HandFireArms type.
Used in a total of 103 .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/M3Grant/Weapons.con) Properties used with this type of object: Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.
rem *** M3GrantGunBarrel ***
ObjectTemplate.Create FireArms M3GrantGun
ObjectTemplate.SetNetworkableInfo TankFireArmInfo
ObjectTemplate.LoadSoundScript Sounds/M3GrantGun.ssc
ObjectTemplate.Geometry rh_m3Grant_tcannon_m1
ObjectTemplate.AiTemplate M3GrantTurretGun
rem -------------------------------------
ObjectTemplate.AddTemplate e_MuzzHeavy
ObjectTemplate.SetPosition 0/0/1.2
ObjectTemplate.SetRotation 0/0/0
rem -------------------------------------
ObjectTemplate.ProjectileTemplate M3GrantGunProjectile
rem ObjectTemplate.projectilePosition 0/0/1
ObjectTemplate.ProjectilePosition 0/0/0
ObjectTemplate.MagSize 400
ObjectTemplate.NumOfMag 1
ObjectTemplate.Velocity 600
ObjectTemplate.Reloadtime 2
ObjectTemplate.RoundOfFire 6
ObjectTemplate.RecoilSpeed 30
ObjectTemplate.RecoilSize 0.4
ObjectTemplate.FireInCameraDof 1
ObjectTemplate.AddDevFire
ObjectTemplate.AddFireArmsPosition
ObjectTemplate.AddSkeletonIK
ObjectTemplate.AddTemplate
ObjectTemplate.AiTemplate
ObjectTemplate.AltFireOnce
ObjectTemplate.AmmoIcon
ObjectTemplate.AmmoType
ObjectTemplate.AsynchronyFire
ObjectTemplate.AutoReload
ObjectTemplate.CoolDownPerSec
ObjectTemplate.Create
ObjectTemplate.CrossHairType
ObjectTemplate.DelayToUse
ObjectTemplate.DestroyVehicleWhenNoAmmo
ObjectTemplate.DisableWhenFired
ObjectTemplate.FireDelay
ObjectTemplate.FireInCameraDof
ObjectTemplate.FireingForce
ObjectTemplate.FireOnce
ObjectTemplate.Geometry
ObjectTemplate.GUIIndex
ObjectTemplate.HasArmor
ObjectTemplate.HasCollisionPhysics
ObjectTemplate.HasMag
ObjectTemplate.HasResponsePhysics
ObjectTemplate.HeatAddWhenFire
ObjectTemplate.Hitpoints
ObjectTemplate.HudAmmoType
ObjectTemplate.InputFire
ObjectTemplate.ItemIndex
ObjectTemplate.LoadSoundScript
ObjectTemplate.MagSize
ObjectTemplate.MagType
ObjectTemplate.Material
ObjectTemplate.Maxhitpoints
ObjectTemplate.NetworkableInfo
ObjectTemplate.NumOfMag
ObjectTemplate.Position
ObjectTemplate.ProjectilePosition
ObjectTemplate.ProjectileTemplate
ObjectTemplate.RecoilSize
ObjectTemplate.RecoilSpeed
ObjectTemplate.Reloadtime
ObjectTemplate.Rotation
ObjectTemplate.RoundOfFire
ObjectTemplate.SaveInSeparateFile
ObjectTemplate.SetAsynchronyFire
ObjectTemplate.SetFireCameraShakeAnimationState
ObjectTemplate.SetFireDev
ObjectTemplate.SetHasMag
ObjectTemplate.SetInputFire
ObjectTemplate.SetMinDev
ObjectTemplate.SetNetworkableInfo
ObjectTemplate.SetPosition
ObjectTemplate.SetRotation
ObjectTemplate.SetTracerTemplate
ObjectTemplate.SetVisibleDummyProjectileTemplate
ObjectTemplate.SoldierCameraPosition
ObjectTemplate.Startoneffects
ObjectTemplate.TimeDelayOnOverHeat
ObjectTemplate.Velocity
ObjectTemplate.VisibleBarrelTemplate
ObjectTemplate.VisibleDummyProjectileTemplate