SetPcoId Property

Usage:
   ObjectTemplate.SetPcoId number

Argument values:

argument 1:    range is 0 to 3; most commonly 0

Description: This property sets the order in which PlayerControlObjects are used. Normally the order is generated automatically by the order in which PlayerControlObjects are added to each other. However, you can modify that order with this property. For example, If you add more thas one PlayerControlObject to another PlayerControlObject, you can set which which of these is associated with the number on the keyboard. SetPcoId of 0 means the first spot in that object.

Related properties: AddPcoPosId, GUIIndex, SetSoldierExitLocation

Used in object types (and how often in each type): PlayerControlObject (11%)

Used in a total of 24 .con files: Objects.con

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

Example: (from objects/Vehicles/Sea/Lcvp/Objects.con)
   rem *** Lcvp ***
   ObjectTemplate.Create PlayerControlObject Lcvp
   ObjectTemplate.SetNetworkableInfo LcvpBodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.Drag 0.488
   ObjectTemplate.Mass 30000
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.HasArmor 1
   ObjectTemplate.Hitpoints 150
   ObjectTemplate.Maxhitpoints 150
   ObjectTemplate.Material 45
   ObjectTemplate.CriticalDamage 50
   ObjectTemplate.HpLostWhileCriticalDamage 1.5
   ObjectTemplate.ExplosionForceMod 20
   ObjectTemplate.HpLostWhileUpSideDown 10
   ObjectTemplate.AddArmorEffect 80 em_LcvpDamage 0/0/0
   ObjectTemplate.AiTemplate LcvpAI
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodLcvp
   ObjectTemplate.AddTemplate Lcvp_Floater
   ObjectTemplate.SetPosition 1.7/3.1/-4.499
   ObjectTemplate.AddTemplate Lcvp_Floater
   ObjectTemplate.SetPosition -1.699/3.1/-4.499
   ObjectTemplate.AddTemplate Lcvp_Floater
   ObjectTemplate.SetPosition 1.7/3.1/4.5
   ObjectTemplate.AddTemplate Lcvp_Floater2
   ObjectTemplate.SetPosition -1.699/3.1/4.5
   ObjectTemplate.AddTemplate LcvpPassangerPCO3
   ObjectTemplate.SetPosition 0.65/2.9/-1
   ObjectTemplate.AddTemplate LcvpPassangerPCO4
   ObjectTemplate.SetPosition 0.65/2.9/0.8
   ObjectTemplate.AddTemplate LcvpPassangerPCO5
   ObjectTemplate.SetPosition -0.65/2.9/-1
   ObjectTemplate.AddTemplate LcvpPassangerPCO6
   ObjectTemplate.SetPosition -0.65/2.9/0.8
   rem -------------------------------------
   ObjectTemplate.SetPcoId 0
   ObjectTemplate.SetSoldierExitLocation 0/1.95/3.5 0/0/0
   ObjectTemplate.GUIIndex 42
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_lcvp.tga"
   ObjectTemplate.SetVehicleIconPos 17/46
   ObjectTemplate.SetPrimaryAmmoBar ABNone
   ObjectTemplate.SetCrossHairType CHTNone
   ObjectTemplate.SetVehicleCategory VCSea
   ObjectTemplate.SetVehicleType VTLcvp
   ObjectTemplate.SetToolTipType TTLcvp
   ObjectTemplate.ExitTimer -0.5
   ObjectTemplate.ExitSpeedMod 0


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