Usage:
ObjectTemplate.SetPosition
x/y/z
Argument values:
argument 1: | -.015/0/0.1, -.06/-0.099/0.05, -.35/-2.3/.4, -.35/0/-4.4, -.4/-1.2/-1, -.4/-1.2/-2.5, -.5/0.5/4, -0.00/0.765/-5.742, -0.001/0.001/2.144, -0.001/0.888/1.637, -0.001/7.3/-5.633, -0.002/-0.613/-0.364, -0.002/0.01/5.662, ... |
Description: SetPosition sets the position of a child object attached to the current object with the AddTemplate command. This position is relative to the center of the parent object. If this property is omitted, the position is 0/0/0.
Imagine that you are sitting in the middle of the jeep facing forward. The first parameter, X, is the right and left movement. If you were to scoot to your right you would be moving positively in the X axis; move to your left, you would be moving negatively. The second parameter, Y, is your height off the ground. If you were to jump straight up, you would be moving positively in the Y axis. Finally, the third parameter, Z, is forward and reverse.
Used in object types (and how often in each type): AnimatedBundle (18%), Bundle (64%), Camera (1%), ControlPoint (100%), EffectBundle (28%), Engine (67%), FireArms (53%), HandFireArms (58%), LandingGear (53%), LodObject (17%), Obstacle (100%), PlayerControlObject (67%), Projectile (6%), RotationalBundle (64%), simpleobject (1%)
Used in a total of 727 .con files: Allies_eastairfield_spawn.con, Allies_factory_spawn.con, Allies_westairfield_spawn.con, Commonsoldierdata.inc, Controlpointtemplates.con, Effects.con, Objects.con, Physics.con, Weapons.con
Parent directories of these .con files: objects/Vehicles, objects/Vegetation, objects/Stationary_Weapons, objects/Soldiers, objects/Objectives, objects/MOVE_FILES, objects/HandWeapons, objects/Effects, objects/Buildings, Bf1942/Levels
Example: (from objects/Buildings/Essen/CitymeshEssen/Objects.con)
ObjectTemplate.Create Bundle citymeshEssenInterior
ObjectTemplate.Geometry citymeshEssen_m1
rem -------------------------------------
ObjectTemplate.AddTemplate eupaint2_M1
ObjectTemplate.SetPosition 5.76/11/1.3
ObjectTemplate.SetRotation 90/0/0
ObjectTemplate.AddTemplate eutable_M1
ObjectTemplate.SetPosition 4.87/4.41/3.65
ObjectTemplate.SetRotation 0/0/180
ObjectTemplate.AddTemplate eurocarpet1_M1
ObjectTemplate.SetPosition 0/4.46/1
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate euchair_M1
ObjectTemplate.SetPosition 4.22/4.69/1.85
ObjectTemplate.SetRotation 20/0/92
ObjectTemplate.AddTemplate euchair_M1
ObjectTemplate.SetPosition 5.22/4.41/4.4
ObjectTemplate.SetRotation 180/0/180
ObjectTemplate.AddTemplate eubooksh_M1
ObjectTemplate.SetPosition 2.2/4.41/6.095
ObjectTemplate.SetRotation 180/0/0
ObjectTemplate.AddTemplate eucloset_M1
ObjectTemplate.SetPosition 5.38/8.57/3.5
ObjectTemplate.SetRotation -90/0/180
ObjectTemplate.AddTemplate eubed_m1
ObjectTemplate.SetPosition 4.75/8.57/1.3
ObjectTemplate.SetRotation -90/0/0
ObjectTemplate.AddTemplate eurocarpet2_M1
ObjectTemplate.SetPosition 2.4/8.615/1.4
ObjectTemplate.SetRotation 0/0/0
rem --------------------------------------
ObjectTemplate.AddTemplate euchair_M1
ObjectTemplate.SetPosition 3/0.47/5
ObjectTemplate.SetRotation 150/-87/180
ObjectTemplate.AddTemplate euchair_M1
ObjectTemplate.SetPosition 2/0.47/3
ObjectTemplate.SetRotation 40/-87/180
ObjectTemplate.AddTemplate stecrate1_M1
ObjectTemplate.SetPosition 3.5/0.18/0
ObjectTemplate.SetRotation 90/0/0
ObjectTemplate.AddTemplate citymesh2fence_m1
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.