HasDynamicShadow Property

Usage:
   ObjectTemplate.HasDynamicShadow boolean

Argument values:

argument 1:    1; most commonly 1

Description: If set to true (1), this object will cast a shadow that will change as the object moves, or if it is destroyed. The model must have a shadow mesh for this computation. Shadows from buildings, trees, and other static objects are usually "baked on" to the terrain map, so this property is false (0 - the default) for them. Normally this property is set for the large parts of an object, e.g. for the fuselage of a plane but no other plane objects. This is done to save on computation during the game.

Used in object types (and how often in each type): AnimatedBundle (42%), Bundle (4%), ClusterProjectile (100%), HandFireArms (83%), PlayerControlObject (29%), Projectile (14%), simpleobject (4%)

Used in a total of 223 .con files: Commonsoldierdata.inc, Geometries.con, Objects.con, Weapons.con

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

Example: (from objects/Vehicles/Air/Goblin/Objects.con)
   rem *** Goblin ***
   ObjectTemplate.Create PlayerControlObject Goblin
   ObjectTemplate.SetNetworkableInfo Goblin_body_info
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.CullRadiusScale 5
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.Drag 0.09
   ObjectTemplate.Mass 2500
   ObjectTemplate.InertiaModifier 0.85/0.833/0.84
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.ExplosionRadius 8
   ObjectTemplate.ExplosionDamage 5
   ObjectTemplate.HasArmor 1
   ObjectTemplate.AngleMod 1
   ObjectTemplate.SpeedMod 2
   ObjectTemplate.Hitpoints 40
   ObjectTemplate.Maxhitpoints 40
   ObjectTemplate.Material 60
   ObjectTemplate.CriticalDamage 15
   ObjectTemplate.HpLostWhileCriticalDamage 1.5
   ObjectTemplate.ExplosionForceMod 15
   ObjectTemplate.HpLostWhileUpSideDown 10
   ObjectTemplate.HpLostWhileDamageFromWater 10
   ObjectTemplate.AddArmorEffect 40 e_jetbeamgoblin 0/0/-2.8
   ObjectTemplate.AddArmorEffect 30 em_StukaDamage 0/-0.202/0.21
   ObjectTemplate.AddArmorEffect 30 em_PlaneDamage 0/-0.202/1.21
   ObjectTemplate.AddArmorEffect 30 e_JetBeamgoblin 0/0/-2
   ObjectTemplate.AddArmorEffect 15 e_StukaFire 0/0.6/1.11
   ObjectTemplate.AddArmorEffect 15 em_PlaneDamage 0/-0.202/1.21
   ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
   ObjectTemplate.AddArmorEffect 0 e_scrapmetal_Goblin 0/0/0.5
   ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
   ObjectTemplate.DamageFromWater 1
   ObjectTemplate.AiTemplate Goblin
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodGoblin
   rem -------------------------------------
   ObjectTemplate.SetSoldierExitLocation -2.5/0/-3 0/0/0
   ObjectTemplate.GUIIndex 108
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_goblin.tga"
   ObjectTemplate.SetVehicleIconPos 78/80
   ObjectTemplate.SetNumberOfWeaponIcons 1
   ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_bullet.tga"
   ObjectTemplate.SetPrimaryAmmoBar ABAmmoBar
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SetVehicleCategory VCAir
   ObjectTemplate.SetVehicleType VTFighter
   ObjectTemplate.SetToolTipType TTGoblin
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_goblin_16x16.dds"


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