Usage:
ObjectTemplate.PcoId
number
Argument values:
argument 1: | range is 0 to 2; most commonly 0 |
Related properties: AddTemplate, GUIIndex
Used in object types (and how often in each type): PlayerControlObject (2%)
Used in a total of 4 .con files: Objects.con
Parent directory of these .con files: Bf1942/Levels
Example: (from Bf1942/Levels/Liberation_of_Caen/Objects/ParaTrooperSpawnObject/Objects.con)
rem *** ParatroopSpawnObject ***
ObjectTemplate.Create PlayerControlObject ParatrooperSpawnObject
ObjectTemplate.NameTagOffset 0/-0.5/0
ObjectTemplate.SetNetworkableInfo ParaTrooperSpawnObject_BodyInfo
ObjectTemplate.SaveInSeparateFile 1
ObjectTemplate.HasMobilePhysics 0
ObjectTemplate.CullRadiusScale 5
ObjectTemplate.ExplosionRadius 0
ObjectTemplate.ExplosionDamage 0
ObjectTemplate.ExitTimer 1
ObjectTemplate.Drag 2
ObjectTemplate.Mass 25000
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.HasArmor 1
ObjectTemplate.SpeedMod 2
ObjectTemplate.Hitpoints 19
ObjectTemplate.Maxhitpoints 19
ObjectTemplate.Material 45
ObjectTemplate.CriticalDamage 20
ObjectTemplate.ExplosionForceMod 0
ObjectTemplate.HpLostWhileCriticalDamage 2
ObjectTemplate.HpLostWhileUpSideDown 0
ObjectTemplate.HpLostWhileDamageFromWater 0
rem ObjectTemplate.addArmorEffect 30 e_PanzDamage 0/1/-1.4
rem ObjectTemplate.addArmorEffect 12 e_PanzFire 0/1/-1.4
rem ObjectTemplate.addArmorEffect 0 e_ExplGas 0/0/0
rem ObjectTemplate.addArmorEffect 0 e_scrapmetal 0/0/0
rem ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.DamageFromWater 0
rem -------------------------------------
ObjectTemplate.AddTemplate ParaTrooperSpawn_1
ObjectTemplate.SetPosition 8/24.131/10
ObjectTemplate.AddTemplate ParaTrooperSpawn_2
ObjectTemplate.SetPosition -5/30.653/7
ObjectTemplate.AddTemplate ParaTrooperSpawn_3
ObjectTemplate.SetPosition 9/28.131/-6
ObjectTemplate.AddTemplate ParaTrooperSpawn_4
ObjectTemplate.SetPosition -7/35.653/-5
ObjectTemplate.AddTemplate ParaTrooperSpawn_5
ObjectTemplate.SetPosition 12/20.297/0
ObjectTemplate.AddTemplate ParaTrooperSpawn_6
ObjectTemplate.SetPosition -10/33.297/0
rem -------------------------------------
ObjectTemplate.SetSoldierExitLocation -2/0.5/0 0/0/0
ObjectTemplate.GUIIndex 73
rem ObjectTemplate.setVehicleIcon "Vehicle/Icon_Sexton.tga"
rem ObjectTemplate.setVehicleIconPos 50/97
rem ObjectTemplate.setPrimaryAmmoBar ABNone
rem ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.SetVehicleCategory VCLand
ObjectTemplate.SetVehicleType VTArtillery
rem ObjectTemplate.setToolTipType TTArtillery
ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_blank_16x16.dds"
ObjectTemplate.HasRestrictedExit 1
ObjectTemplate.PcoId 0
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.