Usage:
ObjectTemplate.SetInputFire
name
Argument values:
argument 1: | c_PIAltFire, c_PIFire; most commonly c_PIAltFire |
Description: Sets a separate mouse action to activate a weapon mode (e.g. dropping a bomb, stabbing the bayonet, throwing a knife, firing the flakpanzer's machinegun). Modes are:
c_PIAltFire - right mouse button fires weapon mode c_PIFire - left mouse button fires weapon mode
Related properties: MagSize, NumOfMag, ProjectilePosition, ProjectileTemplate, RoundOfFire
Used in object types (and how often in each type): FireArms (20%)
Used in a total of 30 .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/Air/Mosquito/Weapons.con)
rem *** MosquitoBombDummy ***
ObjectTemplate.Create FireArms MosquitoBombRack
ObjectTemplate.SetNetworkableInfo PlaneFireArmInfo
ObjectTemplate.AiTemplate MosquitoBombs
ObjectTemplate.ProjectileTemplate DiveBomberBomb
ObjectTemplate.ProjectilePosition 0/-0.4/-0.2
ObjectTemplate.MagSize 4
ObjectTemplate.NumOfMag 5
ObjectTemplate.Reloadtime 10
ObjectTemplate.Velocity 0
ObjectTemplate.RoundOfFire 8
ObjectTemplate.AutoReload 1
ObjectTemplate.SetAsynchronyFire 1
ObjectTemplate.SetInputFire c_PIAltFire
ObjectTemplate.AddFireArmsPosition -1/-0.5/0 0/0/0
ObjectTemplate.AddFireArmsPosition 1/-0.5/0 0/0/0
ObjectTemplate.AddFireArmsPosition -1/-0.5/0 0/0/0
ObjectTemplate.AddFireArmsPosition 1/-0.5/0 0/0/0
ObjectTemplate.AmmoType 7
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.