Usage:
ObjectTemplate.NumOfMag
number
Argument values:
argument 1: | range is -1 to 1000; most commonly 1 |
Description: Sets the maximum/starting number of magazines of ammo for a HandFireArms or FireArms object. A -1 (used for the detonator and the wasserfall) means the magazine holds an infinite number of rounds.
Related properties: MagSize, ProjectileTemplate
Used in object types (always present 100% of the time): FireArms, HandFireArms
Used in a total of 191 .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/Flakpanzer/Weapons.con)
rem *** FlakPanzerGunBarrel ***
ObjectTemplate.Create FireArms FlakPanzerGunBarrel
ObjectTemplate.SetNetworkableInfo TankFireArmInfo
ObjectTemplate.LoadSoundScript Sounds/Flak38GunBarrel.ssc
ObjectTemplate.Geometry FlakPanzer_guns_M1
ObjectTemplate.AiTemplate FlakPanzerMainGun
rem -------------------------------------
ObjectTemplate.ProjectileTemplate FlakPanzerProjectile
ObjectTemplate.ProjectilePosition 0/0/0
ObjectTemplate.MagSize 300
ObjectTemplate.NumOfMag 1
ObjectTemplate.Velocity 300
ObjectTemplate.Reloadtime 2
ObjectTemplate.RoundOfFire 5
rem ObjectTemplate.roundOfFire 2.5
rem -------------------------------------
ObjectTemplate.AddFireArmsPosition .5/0.25/2 0/0/0
ObjectTemplate.AddFireArmsPosition -.5/0.25/2 0/0/0
ObjectTemplate.AddFireArmsPosition .5/-0.25/2 0/0/0
ObjectTemplate.AddFireArmsPosition -.5/-0.25/2 0/0/0
rem -------------------------------------
ObjectTemplate.RecoilSpeed 10
ObjectTemplate.RecoilSize 2
ObjectTemplate.VisibleBarrelTemplate e_MuzzFlakP
ObjectTemplate.HeatAddWhenFire 0.04
ObjectTemplate.CoolDownPerSec 0.4
ObjectTemplate.TimeDelayOnOverHeat 2
ObjectTemplate.SetAsynchronyFire 1
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.