SetPivotPosition Property

Usage:
   ObjectTemplate.SetPivotPosition x/y/z

Argument values:

argument 1:    0/0.25/0.2, 0/0.25/0.3, 0/0.3/-1, 0/0/0; most commonly 0/0/0

Description: This property sets an offset for the center of rotation.

Related properties: SetAcceleration, SetMaxRotation, SetMaxSpeed

Used in object types (and how often in each type): Camera (16%), Engine (1%), RotationalBundle (7%), Wing (1%)

Used in a total of 38 .con files: Objects.con, Physics.con, Weapons.con

Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/Soldiers, objects/Objectives, objects/Buildings, Bf1942/Levels

Example: (from objects/Vehicles/Land/Flakpanzer/Objects.con)
   rem *** panzer Tower
   ObjectTemplate.Create RotationalBundle FlakPanzerTower
   ObjectTemplate.NetworkableInfo FlakPanzerTurretInfo
   ObjectTemplate.Geometry FlakPanzer_tower_M1
   ObjectTemplate.LoadSoundScript Sounds/flak38Carriage.ssc
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.SetPivotPosition 0/0/0
   ObjectTemplate.SetMaxSpeed 35/60/60
   ObjectTemplate.SetAcceleration 1000/200/150
   ObjectTemplate.SetContinousRotationSpeed 0/0/0
   ObjectTemplate.SetInputToYaw c_PIMouseLookX
   rem ----------------------------------
   ObjectTemplate.AddTemplate FlakPanzerGunBase
   ObjectTemplate.SetPosition 0/-0.3/0.1
   ObjectTemplate.AddTemplate FlakPanzerPCO1Camera
   ObjectTemplate.SetPosition 0/0.8/-0.7
   ObjectTemplate.AddTemplate FlakPanzerFlakSeat
   ObjectTemplate.SetPosition 0.1/0.2/-0.928
   ObjectTemplate.AddTemplate flakpanzer_handle1
   ObjectTemplate.SetPosition -0.597/0.13/-0.728
   rem ----------------------------------
   ObjectTemplate.SetAttachToListener 1


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