setPcoId


setPcoID <id number, int>

The setPcoId allow you to set the order of playercontrolable objects are used. For example, If you add more then 1 playerControlObject to another playerControlObject, you can set which playerControlObject is associated with the number on the keyboard. setPcoID of 0 = the first spot in that object.
Normally the order is generated automaticly by the order in which playerControl objects are added to each other. But you can modifiy that order with this property.

Example:

ObjectTemplate.create PlayerControlObject Stationary_Browning
ObjectTemplate.networkableInfo Stationary_mg_BodyInfo
ObjectTemplate.setSoldierExitLocation -0.5/0/-0.8 0/0/0
ObjectTemplate.aiTemplate Stationary_Browning
ObjectTemplate.geometry tripod_stick_m1
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.setPcoId 0
ObjectTemplate.HasArmor 1
ObjectTemplate.HitPoints 45
ObjectTemplate.MaxHitPoints 45
ObjectTemplate.Material 45
Objecttemplate.GUIIndex 80
ObjectTemplate.setVehicleIcon "Vehicle/Icon_Browning.tga"
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_bullet.tga"
ObjectTemplate.setPrimaryAmmoBar ABHeatBarOnly
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTStationaryMG
ObjectTemplate.setToolTipType TTStationaryMG

Valid object types

PlayerControlObject - Object that can be taken over and occupied by players (vehicles and stationary weapons).