Usage:
ObjectTemplate.AddPcoPosId
number
Argument values:
argument 1: | range is 0 to 6; most commonly 1 |
Description: This allows you to set the object to jump to only specific PlayerControlObject (PCO) positions specified by SetPcoId. For example, this property is used in the destroyers so that you can jump only between the bow and stern positions and not the machineguns.
Related properties: SetPcoId
Used in object types (and how often in each type): PlayerControlObject (3%)
Used in a total of 2 .con files: Objects.con
Parent directory of these .con files: objects/Vehicles
Example: (from objects/Vehicles/Sea/fletcher/Objects.con)
rem *** Fletcher ***
ObjectTemplate.Create PlayerControlObject Fletcher
ObjectTemplate.SetNetworkableInfo FletcherBodyInfo
ObjectTemplate.SaveInSeparateFile 1
ObjectTemplate.CullRadiusScale 5
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.Drag 3
ObjectTemplate.Mass 2500000
ObjectTemplate.HasArmor 1
ObjectTemplate.Hitpoints 300
ObjectTemplate.Maxhitpoints 300
ObjectTemplate.Material 55
ObjectTemplate.CriticalDamage 50
ObjectTemplate.HpLostWhileCriticalDamage 5
ObjectTemplate.ExplosionForceMod 10
ObjectTemplate.DontClearTeamOnExit 1
ObjectTemplate.AddArmorEffect 200 em_ExFumePOW 0/17/-9
ObjectTemplate.AddArmorEffect 200 em_ExFumePOW 0/17/6
ObjectTemplate.AddArmorEffect 150 em_ExFumePOW 0/17/6
ObjectTemplate.AddArmorEffect 150 em_ExFumePOW 0/17/-9
ObjectTemplate.AddArmorEffect 150 em_FletcherDamage 0/0/0
ObjectTemplate.AddArmorEffect 150 em_FletcherDamage 0/0/20
ObjectTemplate.AddArmorEffect 150 em_FletcherDamage 0/0/-30
ObjectTemplate.AddArmorEffect 100 em_ExFumePOW 0/17/-9
ObjectTemplate.AddArmorEffect 100 em_FletcherDamage 0/0/0
ObjectTemplate.AddArmorEffect 100 em_FletcherDamage 0/0/20
ObjectTemplate.AddArmorEffect 100 em_FletcherDamage 0/0/-30
ObjectTemplate.AddArmorEffect 100 e_waterBoatSink 0/0/0
ObjectTemplate.AddArmorEffect 50 em_FletcherDamage 0/0/0
ObjectTemplate.AddArmorEffect 50 em_FletcherDamage 0/0/20
ObjectTemplate.AddArmorEffect 50 em_FletcherDamage 0/0/-30
ObjectTemplate.AddArmorEffect 50 e_waterBoatSink 0/5/0
ObjectTemplate.AddArmorEffect 50 e_waterBoatSinkEf 0/-2/-5
ObjectTemplate.AddArmorEffect 50 e_waterBoatSinkEf 0/-2/25
ObjectTemplate.AddArmorEffect 50 e_waterBoatSinkEf 0/-2/-35
ObjectTemplate.AiTemplate FletcherAI
rem -------------------------------------
ObjectTemplate.AddTemplate lodFletcher
ObjectTemplate.AddTemplate Fletcher_Floater
ObjectTemplate.SetPosition -1.999/7.5/50
ObjectTemplate.AddTemplate Fletcher_Floater
ObjectTemplate.SetPosition 2/7.5/50
ObjectTemplate.AddTemplate Fletcher_Floater
ObjectTemplate.SetPosition -4.999/7.5/17
ObjectTemplate.AddTemplate Fletcher_Floater
ObjectTemplate.SetPosition 5/7.5/17
ObjectTemplate.AddTemplate Fletcher_Floater
ObjectTemplate.SetPosition -4.999/7.5/-16.999
ObjectTemplate.AddTemplate Fletcher_Floater
ObjectTemplate.SetPosition 5/7.5/-16.999
ObjectTemplate.AddTemplate Fletcher_Floater
ObjectTemplate.SetPosition -1.999/7.5/-49.999
ObjectTemplate.AddTemplate Fletcher_Floater
ObjectTemplate.SetPosition 2/7.5/-49.999
ObjectTemplate.AddTemplate FletcherDriverSoldierSpawn
ObjectTemplate.SetPosition 0/5/32.5
ObjectTemplate.AddTemplate FletcherSoldierSpawn
ObjectTemplate.SetPosition 3/5/-43.699
ObjectTemplate.AddTemplate FletcherSoldierSpawn
ObjectTemplate.SetPosition -2.999/5/-43.699
ObjectTemplate.AddTemplate FletcherLcvpSpawner
ObjectTemplate.SetPosition 7.2/0.3/-43.699
ObjectTemplate.SetRotation 6/0/0
ObjectTemplate.AddTemplate FletcherLcvpSpawner
ObjectTemplate.SetPosition -7.2/0.3/-43.699
ObjectTemplate.SetRotation -5.999/0/0
rem -------------------------------------
ObjectTemplate.SetPcoId 0
ObjectTemplate.AddPcoPosId 1
rem ObjectTemplate.addPcoPosId 2
ObjectTemplate.SonarPos 1
ObjectTemplate.SetSoldierExitLocation -0.2/7.5/20 0/0/0
ObjectTemplate.GUIIndex 40
ObjectTemplate.SetVehicleIcon "Vehicle/Icon_fletcher.tga"
ObjectTemplate.SetVehicleIconPos 95/95
ObjectTemplate.SetNumberOfWeaponIcons 2
ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
ObjectTemplate.SetPrimaryAmmoBar ABReloadBarOnly
ObjectTemplate.SetSecondaryAmmoIcon "Ammo/Icon_depthcharge.tga"
ObjectTemplate.SetSecondaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.SetCrossHairType CHTIcon
ObjectTemplate.SetVehicleCategory VCSea
ObjectTemplate.SetVehicleType VTDestroyer
ObjectTemplate.SetToolTipType TTDestroyer
ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_destoyer_32x32.tga"
ObjectTemplate.SetMinimapIconSize 32
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.