Usage:
ObjectTemplate.FireInCameraDof
boolean
Argument values:
argument 1: | 1; most commonly 1 |
Description: Used to make the weapon aim at where you're looking.
Used in object types (and how often in each type): FireArms (22%), HandFireArms (88%)
Used in a total of 107 .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/M11-39/Weapons.con)
rem *** M11-39GunBarrel ***
ObjectTemplate.Create FireArms M11-39GunRight
ObjectTemplate.SetNetworkableInfo TankFireArmInfo
ObjectTemplate.LoadSoundScript Sounds/M11-39GunRight.ssc
rem ObjectTemplate.geometry rh_M11-39_tcannon_m1
ObjectTemplate.Geometry m1139_mgun_d_m1
rem ObjectTemplate.aiTemplate M11-39TurretGun
rem -------------------------------------
ObjectTemplate.AddTemplate e_MuzzHeavy
ObjectTemplate.SetPosition 0/0/0.5
ObjectTemplate.SetRotation 0/0/0
rem -------------------------------------
ObjectTemplate.ProjectileTemplate M11-39GunProjectile
rem ObjectTemplate.projectilePosition 0/0/1
ObjectTemplate.ProjectilePosition 0/0/0
ObjectTemplate.MagSize 400
ObjectTemplate.NumOfMag 1
ObjectTemplate.Velocity 600
ObjectTemplate.Reloadtime 1
ObjectTemplate.RoundOfFire 3
ObjectTemplate.RecoilSpeed 30
ObjectTemplate.RecoilSize 2
ObjectTemplate.FireInCameraDof 1
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.