AmmoBarPosX Property [Vietnam]

Usage:
   ObjectTemplate.AmmoBarPosX number

Argument values:

argument 1:    range is -296 to 0; most commonly -187

Description: This property is used exclusively in Battlefield Vietnam. Equivalent to SetAmmoBarPosX.

Related properties: AmmoBar, AmmoBarFill, AmmoBarPosY, AmmoBarSize, AmmoBarTextPosX, AmmoBarTextPosY, CrossHairType, GUIIndex

Used in object types (and how often in each type): HandFireArms (36%)

Used in a total of 34 .con files: Objects.con

Parent directory of these .con files: vietnamObjects/HandWeapons

Example: (from vietnamObjects/HandWeapons/DPM/Objects.con)
   ObjectTemplate.Create HandFireArms DPM
   ObjectTemplate.NetworkableInfo HandFireArmsInfo
   ObjectTemplate.ProjectileTemplate Ak47Projectile
   rem ObjectTemplate.setTracerTemplate Tracer_Projectile CRD_UNIFORM/2/4/0
   ObjectTemplate.ProjectilePosition 0/0/0
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.MagSize 47
   ObjectTemplate.NumOfMag 3
   ObjectTemplate.MagType 0
   ObjectTemplate.Reloadtime 4.3
   ObjectTemplate.RoundOfFire 10
   ObjectTemplate.AiTemplate multishotAI
   ObjectTemplate.ZoomFov 0.6
   ObjectTemplate.AltFireOnce 1
   ObjectTemplate.SoldierZoomFov 0.6
   ObjectTemplate.SoldierZoomPosition -0.05/0.02/0.06
   ObjectTemplate.SoldierCameraPosition -0.01/-0.04/0.09
   ObjectTemplate.AddRootSpeed 0
   ObjectTemplate.AmmoType 1
   ObjectTemplate.GUIIndex 3
   ObjectTemplate.SetHudAmmoType ATAmmoBar
   rem objectTemplate.ammoBar "Ingame/Magbar_Sg44_empty_32x64.tga"
   rem objectTemplate.ammoBarFill "Ingame/Magbar_Sg44_full_32x64.tga"
   rem objectTemplate.ammoBarSize 64
   ObjectTemplate.AmmoBar "Menu/hud/Ammo_Meter_Box.tga"
   ObjectTemplate.AmmoBarFill "Menu/hud/Ammo_Meter_Box_full.tga"
   ObjectTemplate.AmmoBarSize 58
   ObjectTemplate.AmmoBarPosX -187
   ObjectTemplate.AmmoBarPosY 36
   ObjectTemplate.AmmoBarTextPosX 52
   ObjectTemplate.AmmoBarTextPosY -1
   ObjectTemplate.CrossHairType CHTCrossHair
   rem ObjectTemplate.autoReload 1
   Rem *** Deviation Begin *****
   rem ** FireDev harge large a reticule/how quickly it expands/how quickly it returns
   rem ** setDevMod(float devModStand, float devModCrouch, float devModLie, float devModZoomedFactor)
   rem ** Mindev sets the size of the reticule/deviation of bullets
   rem ** Turndev setTurnDev(float max, float addPitch, float addYaw, float sub)
   rem ** SpeedDev setSpeedDev(float max, float addForward, float addStrafe, float sub)
   rem ** MiscDev setMiscDev(float max, float addJump, float sub)
   ObjectTemplate.Velocity 1000
   ObjectTemplate.SetRecoilForceUp CRD_UNIFORM/0.28/0.32/0
   ObjectTemplate.SetRecoilForceLeftRight CRD_UNIFORM/-0.2/0.2/0
   ObjectTemplate.SetHasRecoilForce 1
   ObjectTemplate.SetGoBackOnRecoil 0
   ObjectTemplate.SetFireDev 3.0 0.25 0.03
   ObjectTemplate.SetDevMod 1.0 0.85 0.5 0.0
   ObjectTemplate.SetMinDev 0.85
   ObjectTemplate.SetTurnDev 1.5 0.2 0.2 0.175
   ObjectTemplate.SetSpeedDev 1.8 0.2 0.2 0.1
   ObjectTemplate.SetMiscDev 4.5 2.5 0.1
   Rem *** Deviation End *****
   ObjectTemplate.FireInCameraDof 1
   ObjectTemplate.LoadSoundScript Sounds/DPM.ssc
   ObjectTemplate.CreateSkeleton animations/DPM.ske
   ObjectTemplate.UseSkeletonPartAsMain base
   ObjectTemplate.AddTemplate DPMLod
   ObjectTemplate.AddTemplate e_MuzzDPM
   rem ObjectTemplate.inputId -1
   rem ObjectTemplate.startOnEffects 0
   ObjectTemplate.SetPosition 0/0.01/0.65
   ObjectTemplate.SetRotation 0/0/0
   ObjectTemplate.AddTemplate e_Shell9mm
   rem ObjectTemplate.inputId -1
   rem ObjectTemplate.startOnEffects 0
   ObjectTemplate.SetPosition 0/0.05/0.41
   ObjectTemplate.SetRotation 0/0/0


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