Usage:
ObjectTemplate.SetMinRotation
x/y/z
Argument values:
argument 1: | -0.3/0/-3000, -0.3/0/-500, -0.3/0/80, -1/0/-1, -10/-15/0, -10/-30/0, -10/0/0, -100/0/0, -110/-40/0, -110/0/0, -120/-30/0, -120/0/0, -13/0/0, -15/-40/0, -15/0/0, -155/0/0, -16/-20/0, -160/-15/0, -170/-30/0, ... |
Description: When used in Objects.con, sets the minimum rotation angles in degrees for an object, from its initial position. This and SetMaxRotation 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 backwards movement of the object such as an Engine, or the minimum roll rotation (e.g. for a steering wheel).
When used in Physics.con in an Engine, SetMinRotation and SetMaxRotation for the Engine set how fine the control scale is for the engine (basically how many distinct speeds the engine can be at). For example, a SetMinRotation of -100 and SetMaxRotation of 200 means that the total speed is split into 100 different speeds for reversing and and 200 different speeds for going forward (so feasibly you could control the engine in such a way as to be able to go at 200 different speeds but none between them).
If you set the engine to SetAutomaticReset 0 and then set SetMinRotation to -1 and SetMaxRotation to 1 then basically if you press forward once, your car will speed up till maximum speed is reached, pressing back once will basically make your car just set throttle to 0 so you will come to a stop eventually, pressing back again will reverse. Basically having -1 and 1 makes it so that the engine has 3 different positions that it can be in (Forward, idle, reverse). Although the engine will take a while to get up to max speed, set by the differential and torque, your input to the engine is going to be either full reverse, idle or full forward.
If you use -2 and 2, then you have 5 settings: full reverse, half reverse, idle, half forward, full foward.
All these settings (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, SetMaxRotation, SetMaxSpeed, SetRotation
Used in object types (and how often in each type): Camera (43%), Engine (63%), FloatingBundle (10%), LandingGear (36%), RotationalBundle (61%), Wing (77%)
Used in a total of 166 .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/Land/BlackMedal/Objects.con)
rem *** BlackMedalCamera ***
ObjectTemplate.Create Camera BlackMedalCamera
ObjectTemplate.SetMinRotation -110/-40/0
ObjectTemplate.SetMaxRotation 110/10/0
ObjectTemplate.SetPivotPosition 0/0.25/0.3
ObjectTemplate.SetMaxSpeed 90/90/0
ObjectTemplate.SetAcceleration 5000/5000/0
ObjectTemplate.SetInputToYaw c_PIMouseLookX
ObjectTemplate.SetInputToPitch c_PIMouseLookY
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.