Usage:
ObjectTemplate.DragOffset
x/y/z
Argument values:
argument 1: | 0/0/-1, 0/0/0, 1.73028e-039/1.73028e-039/1.73028e-039; most commonly 0/0/0 |
Related properties: Drag, HasCollisionPhysics, HasMobilePhysics
Used in object types (and how often in each type): PlayerControlObject (3%), simpleobject (1%)
Used in a total of 10 .con files: Effects.con, Objects.con
Parent directories of these .con files: objects/Vehicles, objects/Effects, Bf1942/Levels
Example: (from objects/Vehicles/Land/Wasserfall/Objects.con)
rem *** Wasserfall ***
ObjectTemplate.Create PlayerControlObject Wasserfall
ObjectTemplate.SetNetworkableInfo WasserfallBodyInfo
rem -------------------------------------
rem ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.CullRadiusScale 5
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.ExplosionRadius 8
ObjectTemplate.ExplosionDamage 10
ObjectTemplate.Drag 2
ObjectTemplate.DragOffset 0/0/0
ObjectTemplate.Mass 4500
ObjectTemplate.HasArmor 1
ObjectTemplate.SpeedMod 2
ObjectTemplate.Hitpoints 50
ObjectTemplate.Maxhitpoints 50
ObjectTemplate.Material 45
ObjectTemplate.CriticalDamage 6
ObjectTemplate.ExplosionForceMod 15
ObjectTemplate.HpLostWhileCriticalDamage 1
ObjectTemplate.HpLostWhileUpSideDown 5
ObjectTemplate.HpLostWhileDamageFromWater 5
rem -------------------------------------
ObjectTemplate.AddArmorEffect 30 e_KatyushaDamage 0/0.5/0
ObjectTemplate.AddArmorEffect 6 e_KatyushaFire 0/0.5/0
ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/-1/0
ObjectTemplate.AddArmorEffect 0 e_scrapmetal_wasserfall 0/0.5/0
ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/-1/0
ObjectTemplate.DamageFromWater 1
ObjectTemplate.AiTemplate WasserFallLauncherAI
rem -------------------------------------
ObjectTemplate.Geometry DefGun_thing_M1
rem -------------------------------------
ObjectTemplate.AddTemplate lodWasserfall
rem -------------------------------------
ObjectTemplate.SetSoldierExitLocation -5/-4/-2 -90/0/0
ObjectTemplate.GUIIndex 20
ObjectTemplate.SetVehicleIcon "Vehicle/Icon_wasserfall.tga"
ObjectTemplate.SetVehicleIconPos 53/91
ObjectTemplate.SetNumberOfWeaponIcons 1
ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Ammobar_icon_wasserfall_64x64.tga"
ObjectTemplate.SetPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.SetCrossHairType CHTIcon
ObjectTemplate.SetVehicleCategory VCLand
ObjectTemplate.SetVehicleType VTArtillery
ObjectTemplate.SetToolTipType TTWasserfall
ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_stationary_16x16.tga"
ObjectTemplate.SonarPos 1
ObjectTemplate.DirBarXScale 70
ObjectTemplate.DirBarYScaleAbove 37.5
ObjectTemplate.DirBarYScaleBelow 0
ObjectTemplate.DirBarYScaleMin -90
ObjectTemplate.DirBarYScaleMax -45
ObjectTemplate.HasRestrictedExit 1
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.