Create Property

Usage:
   ObjectTemplate.Create type name

Argument values:

argument 1:    ANDCompositeObjective, ActiveKitPart, AnimatedBundle, AreaObject, BFSoldier, Bundle, Camera, ClusterProjectile, ControlPoint, DestroyTargetObjective, EffectBundle, Emitter, Engine, EntryPoint, FireArms, ...
argument 2:    0PEN_BASE_ROAD, 0PEN_BASE_crossing, 1PBritCommandoLeftHand, 1PBritCommandoRightHand, 1PBritSoldierLeftHand, 1PBritSoldierRightHand, 1PGerEliteSoldierLeftHand, 1PGerEliteSoldierRightHand, 1PGerSoldierLeftHand, ...

Description: The Create command is used to inform the scripting engine that a new object template is going to be created. All properties and commands following a create command will be applied to that object, until another create command or the end of the file is encountered.

The first argument is one of the pre-defined object types that is going to be created. See the type list.

The second argument is the unique name of the object. This is what is used to add this object to other objects with the AddTemplate command, and is used in any other object references.

Related properties: Active, AddTemplate, SetPosition, SetRotation

Used in a total of 2708 .con files: Allies_eastairfield_spawn.con, Allies_factory_spawn.con, Allies_westairfield_spawn.con, Anzio_river.con, Beach1.con, Beach2.con, Beach3.con, Beach4.con, Beach5.con, Biglake.con, Birdintree.con, Birds.con, Birds_and_trees.con, Church_bell.con, Coastline.con, Coastlineisle1.con, Coastlineisle2.con, Coastlineisle3.con, Coastlineisle4.con, Coastlineisle5.con, Controlpointtemplates.con, Crane_chains.con, Crickets.con, Ctf.con, Easter.con, Effects.con, Geometries.con, Harbor_waves.con, Hilfe.con, Init.con, Island1.con, Island2.con, Island3.con, Island_shore.con, Island_shore2.con, Lake.con, Lake2.con, Lake3.con, Object.con, Objectivespawnertemplates.con, Objects.con, Objectspawntemplates.con, Ocean1.con, Ocean2.con, Ocean3.con, Ocean4.con, Ocean5.con, Ocean6.con, Physics.con, Pond.con, Projectile.con, River.con, River4.con, River5.con, River_salerno.con, River_santocroce.con, Rivermid.con, Riverside.con, Riverside2.con, Seagulls.con, Siren.con, Skyandsun.con, Smallwar.con, Soldierspawntemplates.con, Telemark_river.con, Terrain.con, Top_hill.con, Turbinesound.con, Waterunderbridge.con, Weapons.con, Windybridge.con

Parent directories of these .con files: objects/Vehicles, objects/Vegetation, objects/Stationary_Weapons, objects/Soldiers, objects/Objectives, objects/MOVE_FILES, objects/Items, objects/HandWeapons, objects/Effects, objects/Common, objects/Buildings, Bf1942/Levels, ai

Example: (from objects/Vehicles/Land/M3Grant/Objects.con)
   rem *** M3Grant ***
   ObjectTemplate.Create PlayerControlObject M3Grant
   ObjectTemplate.NameTagOffset 0/-0.3/0
   ObjectTemplate.SetNetworkableInfo M3GrantBodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.CullRadiusScale 5
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.ExplosionRadius 8
   ObjectTemplate.ExplosionDamage 5
   ObjectTemplate.ExitTimer 1
   ObjectTemplate.Drag 2
   ObjectTemplate.Mass 25000
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.HasArmor 1
   ObjectTemplate.Hitpoints 80
   ObjectTemplate.Maxhitpoints 80
   ObjectTemplate.Material 50
   ObjectTemplate.SpeedMod 1
   ObjectTemplate.CriticalDamage 12
   ObjectTemplate.HpLostWhileCriticalDamage 1.5
   ObjectTemplate.ExplosionForceMod 13
   ObjectTemplate.HpLostWhileUpSideDown 10
   ObjectTemplate.HpLostWhileDamageFromWater 10
   ObjectTemplate.AddArmorEffect 50 e_PanzDamage 0/0.9/-1.8
   ObjectTemplate.AddArmorEffect 12 e_PanzFire 0/1.2/-1.4
   ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
   ObjectTemplate.AddArmorEffect 0 e_scrapmetal 0/0/0
   ObjectTemplate.AddArmorEffect 0 e_scrapmetalsmoke 0/0/0
   ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
   ObjectTemplate.DamageFromWater 1
   ObjectTemplate.AiTemplate M3Grant
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodM3Grant
   rem -------------------------------------
   ObjectTemplate.SetSoldierExitLocation -2/0.5/0 0/0/0
   ObjectTemplate.GUIIndex 25
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_m3grant.tga"
   ObjectTemplate.SetVehicleIconPos 55/88
   ObjectTemplate.SetNumberOfWeaponIcons 1
   ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
   ObjectTemplate.SetPrimaryAmmoBar ABAmmoBarReloadBar
   ObjectTemplate.SetHasTurretIcon 1
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SetVehicleCategory VCLand
   ObjectTemplate.SetVehicleType VTArmoredCar
   ObjectTemplate.SetToolTipType TTArmoredCar
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_tank_16x16.tga"
   ObjectTemplate.HasRestrictedExit 1


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