Usage:
AnimationStateMachine.SetCameraShakeUpDown
boolean number number
Argument values:
argument 1: | 0; most commonly 0 |
argument 2: | 0 0.03 0.04 0.06 0.07 0.08 0.2 0.8 1 |
argument 3: | range is 5.0 to 3500; most commonly 3500 |
Description: Setting this property causes the camera shake to move up and down compared to the view direction.
Related properties: SetCameraShakeFadeIn, SetCameraShakeFadeOut, SetCameraShakeInOut, SetCameraShakeLeftRight, SetCameraShakeMinFactor, SetCameraShakePitch, SetCameraShakeRoll, SetCameraShakeTimeToShake, SetCameraShakeYaw
This property is not a part of any defined type of object.
Used in a total of 5 .con files: Animationstatescamerashakes.con, Animationstatescamerashakesmod.con, Animationstatescrouching.con, Animationstateslie.con, Animationstateslower.con
Parent directory of these .con files: Animations
Example: (from Animations/AnimationStatesCrouching.con)
rem
rem *** Crouch states ***
rem
rem
rem **** Transitions from stand/crouch/lie
rem
AnimationStateMachine.CreateState Lb_StandToCrouch
AnimationStateMachine.SetSoundTrigger c_SstToCrouch
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PStand2CrouchLower.baf 4 c_AsmPlayOnce
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.AddTransitionWhenDone Lb_Crouch
AnimationStateMachine.SetFlag c_AsmIsCrouching
AnimationStateMachine.CreateState Lb_CrouchToStand
AnimationStateMachine.SetSoundTrigger c_SstFromCrouch
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PStand2CrouchLower.baf -4 c_AsmPlayOnce
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.AddTransitionWhenDone Lb_Stand
AnimationStateMachine.CreateState Lb_StandToLie
AnimationStateMachine.SetSoundTrigger c_SstToCrawl
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PStand2CrouchLower.baf 4 c_AsmPlayOnce
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.SetFlag c_AsmIsLying
AnimationStateMachine.AddTransitionWhenDone Lb_CrouchToLie
AnimationStateMachine.CreateState Ub_StandToLie
AnimationStateMachine.AddAnimation Animations/Crouch/3P/3PStand2CrouchUpper.baf 4 c_AsmPlayOnce
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.SetFlag c_AsmIsLying
AnimationStateMachine.AddTransitionWhenDone Ub_CrouchToLie
rem ** Upper From/to crouch ***
AnimationStateMachine.CreateState Ub_StandToCrouch
rem AnimationStateMachine.addAnimation Animations/Crouch/3P/3PStand2CrouchUpper.baf 4 c_AsmPlayOnce
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.AddTransitionWhenDone Ub_Crouch
AnimationStateMachine.CreateState Ub_CrouchToStand
rem AnimationStateMachine.addAnimation Animations/Crouch/3P/3PStand2CrouchUpper.baf 4 c_AsmPlayOnce
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.AddTransitionWhenDone Ub_StandAim
-----------------------------Lower Body----------------------------------
rem
rem **** Is Crouching
rem
AnimationStateMachine.CreateState Lb_Crouch
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PCrouchBreathLower.baf 1 c_AsmLooping
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_CrouchForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_CrouchBackward
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_CrouchStrafeLeft
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_CrouchStrafeRight
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_CrouchTurnLeft
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_CrouchTurnRight
AnimationStateMachine.AddTransitionOne c_PICrouch 0.5 100.0 Lb_Crouch
AnimationStateMachine.ReturnToState Lb_CrouchToStand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.SetFlag c_AsmIsCrouching
rem --- Crouch Walk---
AnimationStateMachine.CreateState Lb_CrouchForward
AnimationStateMachine.SetSoundTrigger c_SstCrouchMove
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PCrouchForwardLower.baf 1 c_AsmLooping
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Lb_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_CrouchForward
AnimationStateMachine.ReturnToState Lb_Crouch
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.SetFlag c_AsmIsCrouching
AnimationStateMachine.SetCameraShakeUpDown 0 0.07 10.0
AnimationStateMachine.SetCameraShakeFadeIn 0 0.3
AnimationStateMachine.CreateState Lb_CrouchBackward
AnimationStateMachine.SetSoundTrigger c_SstCrouchMove
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PCrouchForwardLower.baf -1 c_AsmLooping
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Lb_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_CrouchBackward
AnimationStateMachine.ReturnToState Lb_Crouch
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.SetFlag c_AsmIsCrouching
AnimationStateMachine.SetCameraShakeUpDown 0 0.07 10.0
AnimationStateMachine.SetCameraShakeFadeIn 0 0.3
rem --- Crouch Strafe---
AnimationStateMachine.CreateState Lb_CrouchStrafeRight
AnimationStateMachine.SetSoundTrigger c_SstCrouchMove
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PCrouchForwardLower.baf 1 c_AsmLooping
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Lb_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_CrouchForward
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_CrouchStrafeLeft
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_CrouchStrafeRight
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_CrouchTurnLeft
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_CrouchTurnRight
AnimationStateMachine.ReturnToState Lb_Crouch
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.SetFlag c_AsmIsCrouching
AnimationStateMachine.SetCameraShakeUpDown 0 0.07 10.0
AnimationStateMachine.SetCameraShakeFadeIn 0 0.6
AnimationStateMachine.CreateState Lb_CrouchStrafeLeft
AnimationStateMachine.SetSoundTrigger c_SstCrouchMove
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PCrouchForwardLower.baf -1 c_AsmLooping
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Lb_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_CrouchBackward
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_CrouchStrafeLeft
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_CrouchStrafeRight
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_CrouchTurnLeft
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_CrouchTurnRight
AnimationStateMachine.ReturnToState Lb_Crouch
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.SetFlag c_AsmIsCrouching
AnimationStateMachine.SetCameraShakeUpDown 0 0.07 10.0
AnimationStateMachine.SetCameraShakeFadeIn 0 0.6
rem --- Turn ---
AnimationStateMachine.CreateState Lb_CrouchTurnLeft
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PCrouchTurnLeftLower.baf 1 c_AsmLooping
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Lb_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_CrouchForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_CrouchBackward
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_CrouchStrafeLeft
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_CrouchStrafeRight
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_CrouchTurnLeft
AnimationStateMachine.ReturnToState Lb_Crouch
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetFlag c_AsmIsCrouching
AnimationStateMachine.SetCameraShakeUpDown 0 0.07 10.0
AnimationStateMachine.SetCameraShakeFadeIn 0 0.6
AnimationStateMachine.CreateState Lb_CrouchTurnRight
AnimationStateMachine.AddAnimation Animations/Crouch/LowerBody/3PCrouchTurnRightLower.baf 1 c_AsmLooping
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Lb_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_CrouchForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_CrouchBackward
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_CrouchStrafeLeft
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_CrouchStrafeRight
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_CrouchTurnRight
AnimationStateMachine.ReturnToState Lb_Crouch
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetFlag c_AsmIsCrouching
AnimationStateMachine.SetCameraShakeUpDown 0 0.07 10.0
AnimationStateMachine.SetCameraShakeFadeIn 0 0.6
rem
rem *** ------- UPPER BODY ------
rem
AnimationStateMachine.CreateState Ub_Crouch
AnimationStateMachine.addTransitionItem
rem
rem *** Thompson
rem
AnimationStateMachine.CreateState Ub_CrouchThompson
AnimationStateMachine.AddAnimation Animations/Crouch/3p/Thompson/3PCrouchBreathUpperThompson.baf 1 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1PStandAimThompson.baf 0.5 1
AnimationStateMachine.AddIdle Ub_CrouchIdleThompson1
AnimationStateMachine.AddIdle Ub_CrouchIdleThompson2
AnimationStateMachine.AddIdle Ub_CrouchIdleThompson3
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_FireThompson
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFireThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_CrouchForwardThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_CrouchBackwardThompson
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Ub_CrouchStrafeLeftThompson
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_CrouchStrafeRightThompson
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1000 -0.0001 Ub_CrouchTurnThompson
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.0001 1000 Ub_CrouchTurnThompson
AnimationStateMachine.AddTransitionOne c_PICrouch 0.5 100.0 Ub_CrouchThompson
AnimationStateMachine.ReturnToState Ub_CrouchToStand
AnimationStateMachine.SetMorphFactor 0.7
AnimationStateMachine.SetFlag c_AsmIsCrouching
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_CrouchTurnThompson
AnimationStateMachine.AddAnimation Animations/Crouch/3p/Thompson/3PCrouchForwardUpperThompson.baf 1 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf 0.5 1
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Ub_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_FireThompson
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFireThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 9999 Ub_CrouchForwardThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle -9999 -0.5 Ub_CrouchBackwardThompson
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Ub_CrouchStrafeLeftThompson
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_CrouchStrafeRightThompson
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1000 -0.0001 Ub_CrouchTurnThompson
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.0001 1000 Ub_CrouchTurnThompson
AnimationStateMachine.ReturnToState Ub_CrouchThompson
AnimationStateMachine.SetMorphFactor 0.5
AnimationStateMachine.SetFlag c_AsmIsCrouching
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_CrouchForwardThompson
AnimationStateMachine.AddAnimation Animations/Crouch/3p/Thompson/3PCrouchForwardUpperThompson.baf 1 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf 0.5 1
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Ub_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_FireThompson
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFireThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 9999 Ub_CrouchForwardThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle -9999 -0.5 Ub_CrouchBackwardThompson
AnimationStateMachine.ReturnToState Ub_CrouchThompson
AnimationStateMachine.SetMorphFactor 0.5
AnimationStateMachine.SetFlag c_AsmIsCrouching
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_CrouchBackwardThompson
AnimationStateMachine.AddAnimation Animations/Crouch/3p/Thompson/3PCrouchForwardUpperThompson.baf -1 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf -0.5 1
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Ub_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_FireThompson
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFireThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 9999 Ub_CrouchForwardThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle -9999 -0.5 Ub_CrouchBackwardThompson
AnimationStateMachine.ReturnToState Ub_CrouchThompson
AnimationStateMachine.SetMorphFactor 0.5
AnimationStateMachine.SetFlag c_AsmIsCrouching
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_CrouchStrafeLeftThompson
AnimationStateMachine.AddAnimation Animations/Crouch/3p/Thompson/3PCrouchForwardUpperThompson.baf 1 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf 0.5 1
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Ub_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_FireThompson
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFireThompson
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Ub_CrouchStrafeLeftThompson
AnimationStateMachine.ReturnToState Ub_CrouchThompson
AnimationStateMachine.SetMorphFactor 0.5
AnimationStateMachine.SetFlag c_AsmIsCrouching
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_CrouchStrafeRightThompson
AnimationStateMachine.AddAnimation Animations/Crouch/3p/Thompson/3PCrouchForwardUpperThompson.baf 1 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf 0.5 1
AnimationStateMachine.AddTransitionOne c_PICrouch 0.0 0.0 Ub_CrouchToStand
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_FireThompson
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFireThompson
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_CrouchStrafeRightThompson
AnimationStateMachine.ReturnToState Ub_CrouchThompson
AnimationStateMachine.SetMorphFactor 0.5
AnimationStateMachine.SetFlag c_AsmIsCrouching
Go to the AnimationStateMachine properties list page, AnimationStateMachine page, All Properties list, or Main scripting page.