SetAutomaticReset Property

Usage:
   ObjectTemplate.SetAutomaticReset boolean

Argument values:

argument 1:    1; most commonly 1

Description: This is used to modify the effect of a key or button on the pitch, rotation, etc. If set to 1, it resets the throttle to zero after user input is removed. If this property is not specified (or set to 0, the default), the last key pressed continues to be used even after the key is lifted.

In other words, if this is set to 1, you need to keep holding down a key to keep moving. With 0, you will go forward, say, with one keypress and continue to go forward until some other key is pressed. See SetMinRotation for more information.

Related properties: SetAcceleration, SetMaxRotation, SetMaxSpeed

Used in object types (and how often in each type): Engine (62%), FloatingBundle (5%), RotationalBundle (22%), Wing (69%)

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

Parent directories of these .con files: objects/Vehicles, Bf1942/Levels

Example: (from objects/Vehicles/Land/Kubelwagen/Objects.con)
   rem *** KubelwagenFrontWheelL ***
   ObjectTemplate.Create RotationalBundle KubelwagenFrontWheelL
   ObjectTemplate.SetNetworkableInfo KubelwagenSteeringInfo
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   rem -------------------------------------
   ObjectTemplate.AddTemplate KubelwagenFrontSpringL
   ObjectTemplate.SetPosition 0/-0.425/0
   rem -------------------------------------
   ObjectTemplate.SetMinRotation -30/0/0
   ObjectTemplate.SetMaxRotation 30/0/0
   ObjectTemplate.SetMaxSpeed 200/0/0
   ObjectTemplate.SetAcceleration 200/0/0
   ObjectTemplate.SetInputToYaw c_PIYaw
   ObjectTemplate.SetAutomaticReset 1


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