SetHasMag Property

Usage:
   ObjectTemplate.SetHasMag boolean

Argument values:

argument 1:    0, 1; most commonly 0

Related properties: GUIIndex, SetAmmoIcon, SetCrossHairType

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

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

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

Example: (from objects/HandWeapons/Bazooka/Objects.con)
   ObjectTemplate.Create HandFireArms Bazooka
   ObjectTemplate.NetworkableInfo HandFireArmsInfo
   ObjectTemplate.AiTemplate BazookaRPG
   ObjectTemplate.ItemIndex 3
   ObjectTemplate.ProjectileTemplate BazookaProjectile
   ObjectTemplate.ProjectilePosition 0/0/0
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.ForceOnExplosion 2
   ObjectTemplate.MagSize 1
   ObjectTemplate.NumOfMag 6
   ObjectTemplate.MagType 0
   ObjectTemplate.AutoReload 1
   ObjectTemplate.Reloadtime 5.6
   ObjectTemplate.RoundOfFire 1
   ObjectTemplate.FireOnce 1
   ObjectTemplate.SoldierZoomFov 0.6
   ObjectTemplate.SoldierZoomPosition -0.05/-0.02/0
   ObjectTemplate.AmmoType 3
   ObjectTemplate.LoadSoundScript Sounds/bazooka.ssc
   ObjectTemplate.ZoomFov 0.5
   ObjectTemplate.AltFireOnce 1
   ObjectTemplate.FireInCameraDof 1
   ObjectTemplate.GUIIndex 17
   ObjectTemplate.SetHudAmmoType ATIcon
   ObjectTemplate.SetAmmoIcon "Ammo/Icon_bazooka_64x32.tga"
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SetHasMag 1
   Rem *** Deviation Begin *****
   ObjectTemplate.Velocity 50
   ObjectTemplate.MinDeviation 0
   ObjectTemplate.MaxDeviation 0.5
   ObjectTemplate.MinDevStanding 0.2
   ObjectTemplate.MinDevCrouching 0.1
   ObjectTemplate.MinDevLying 0.05
   ObjectTemplate.SubDevStanding 0.03
   ObjectTemplate.SubDevCrouching 0.05
   ObjectTemplate.SubDevLying 0.025
   ObjectTemplate.AddDevWalk 0.01
   ObjectTemplate.AddDevRun 0.02
   ObjectTemplate.AddDevJump 0.05
   ObjectTemplate.AddDevYaw 0.02
   ObjectTemplate.AddDevPitch 0.02
   ObjectTemplate.AddDevStrafe 0.01
   ObjectTemplate.AddDevFire 0.08
   ObjectTemplate.SubDev 0.01
   Rem *** Deviation End *****
   ObjectTemplate.CreateSkeleton animations/Bazooka.ske
   ObjectTemplate.UseSkeletonPartAsMain Bazooka
   ObjectTemplate.AddTemplate BazookaLod
   ObjectTemplate.AddTemplate e_rocketFumeBack
   ObjectTemplate.SetInputId -1
   ObjectTemplate.Startoneffects 0
   ObjectTemplate.SetPosition 0/0/0
   ObjectTemplate.SetRotation 0/0/0


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