SetType Property

Usage:
   ObjectTemplate.SetType name

Argument values:

argument 1:    AT, Assault, Engineer, Medic, RocketPack, Scout; most commonly Engineer

Description: Sets the type of soldier. Used in objects/Items/BritKit/AntiTank/Objects.con and similar files.

The same type is used for the name in AiTemplate.

Related properties: AddTemplate, AddWeaponIcon, Geometry, NetworkableInfo, SetHasCollisionPhysics, SetHealthBarFullIcon, SetHealthBarIcon, SetKitIcon

Used in object types (and how often in each type): Kit (55%)

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

Parent directory of these .con files: objects/Items

Example: (from objects/Items/JapKit/Medic/Objects.con)
   ObjectTemplate.Create Kit Jap_Medic
   ObjectTemplate.SetType Medic
   ObjectTemplate.SetKitTeam 1
   ObjectTemplate.Geometry Kit_Axis_Medic
   ObjectTemplate.SetHasCollisionPhysics 1
   ObjectTemplate.NetworkableInfo KitInfo
   ObjectTemplate.AddTemplate Medichelm_jap
   ObjectTemplate.AddTemplate Jap_Medic_hippack
   ObjectTemplate.SetHealthBarIcon "Ingame/Healthbar_empty_medic_64x64.tga"
   ObjectTemplate.SetHealthBarFullIcon "Ingame/Healthbar_full_medic_64x64.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_axisKnife.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_walter.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_japMg.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_grenadeaxis.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_medpack.tga"
   ObjectTemplate.SetKitIcon 3 "kits/Icon_medic_axis_selected.tga"
   ObjectTemplate.SetKitName 3 "RESPAWN_MEDIC"
   ObjectTemplate.SetKitActiveName 3 "RESPAWN_ACTIVE_MEDIC"
   ObjectTemplate.AddTemplate MP18
   ObjectTemplate.AddTemplate walterP38
   ObjectTemplate.AddTemplate KnifeAxis
   ObjectTemplate.AddTemplate MedPack
   ObjectTemplate.AddTemplate GrenadeAxis
   ObjectTemplate.AiTemplate Medic


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