Usage:
ObjectTemplate.SetMaxRotation
x/y/z
Argument values:
argument 1: |
-20/25/0, 0.3/0/3000, 0.3/0/5000, 0.3/0/80, 0/-1/0, 0/-9/0, 0/0.5/0, 0/0/0, 0/0/1, 0/0/1000, 0/0/115, 0/0/130, 0/0/1500, 0/0/15000, 0/0/2500, 0/0/30, 0/0/5000, 0/0/60, 0/0/7000, 0/0/7500, 0/0/80, 0/0/84, ...
|
Description: When used in Objects.con, this property
sets the maximum rotation angles in degrees for an object, from its initial position.
This and SetMinRotation define the range of
motion of any object, be it a gun emplacement, a view out of a vehicle, etc. The first value
is the yaw rotation, i.e. how much you can turn your head left or right.
The second value is the pitch rotation, i.e. how much you can nod up and down. The last number
is the forwards movement of the object such as an Engine, or the maximum roll rotation (e.g. for
a steering wheel).
When used in Physics.con, this
property has a different meaning. See SetMinRotation
for a full explanation. The properties SetMinRotation,
SetMaxRotation, SetMaxSpeed,
and SetAcceleration control how an
engine responds to player input, they do not otherwise change the speed
chracteristics of a vehicle in any other way.
Related properties: SetAcceleration,
SetMinRotation, SetMaxSpeed,
SetRotation
Used in object types (and how often in each type): Camera
(43%), Engine (63%), FloatingBundle
(10%), LandingGear (38%),
RotationalBundle (61%),
Wing (77%)
Used in a total of 167 .con files: Objects.con,
Physics.con, Weapons.con
Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/Objectives, objects/Buildings, Bf1942/Levels
Example: (from objects/Vehicles/Air/Ilyushin/Physics.con)
rem *** IlyushinEngine ***
ObjectTemplate.Create Engine IlyushinEngine
ObjectTemplate.SetNetworkableInfo IlyushinEngineInfo
ObjectTemplate.LoadSoundScript Sounds/IlyushinEngine.ssc
rem -------------------------------------
ObjectTemplate.AddTemplate lodIlyushinPropeller
ObjectTemplate.SetPosition 0/-0.149/1.5
ObjectTemplate.AddTemplate IlyushinGear1
ObjectTemplate.SetPosition 1.59/-0.928/-0.446
ObjectTemplate.AddTemplate IlyushinGear2
ObjectTemplate.SetPosition -1.59/-0.928/-0.446
ObjectTemplate.AddTemplate IlyushinLandingGearHatchBundle
ObjectTemplate.SetPosition 1.599/-1.053/-1.012
ObjectTemplate.SetRotation 1.488/-6.619/0.388
ObjectTemplate.AddTemplate IlyushinLandingGearHatchBundle
ObjectTemplate.SetPosition -1.589/-1.053/-1.012
ObjectTemplate.SetRotation 1.488/-6.619/0.388
rem -------------------------------------
ObjectTemplate.SetMinRotation -0.3/0/-3000
ObjectTemplate.SetMaxRotation 0.3/0/5000
ObjectTemplate.SetMaxSpeed 1000/0/500
ObjectTemplate.SetAcceleration 500/0/1000
ObjectTemplate.SetInputToRoll c_PIThrottle
ObjectTemplate.SetAutomaticReset 1
ObjectTemplate.SetEngineType c_ETPlane
ObjectTemplate.SetTorque 14.25
ObjectTemplate.SetDifferential 5
ObjectTemplate.SetGearUp 0.7
ObjectTemplate.SetGearDown 0.3
ObjectTemplate.SetNoPropellerEffectAtSpeed 70
Go to the ObjectTemplate properties
list page, ObjectTemplate
page, All Properties
list, or Main scripting
page.