SetCameraShakeFadeIn Property

Usage:
   AnimationStateMachine.SetCameraShakeFadeIn boolean number

Argument values:

argument 1:    0; most commonly 0
argument 2:    0.3 0.6

Description: Setting this property causes camera shake to fade in, instead of starting at once.

Related properties: SetCameraShakeFadeOut, SetCameraShakeInOut, SetCameraShakeLeftRight, SetCameraShakeMinFactor, SetCameraShakePitch, SetCameraShakeRoll, SetCameraShakeTimeToShake, SetCameraShakeUpDown, SetCameraShakeYaw

This property is not a part of any defined type of object.

Used in a total of 3 .con files: Animationstatescrouching.con, Animationstateslie.con, Animationstateslower.con

Parent directory of these .con files: Animations

Example: (from Animations/AnimationStatesLie.con)
   rem
   rem *** Lie states ***
   rem
   rem
   rem **** Transitions from stand/crouch/lie
   rem
   AnimationStateMachine.CreateState Ub_CrouchToLie
   AnimationStateMachine.addTransitionItem
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.ReturnToState Ub_Lie
   AnimationStateMachine.CreateState Ub_LieToCrouch
   AnimationStateMachine.addTransitionItem
   AnimationStateMachine.ReturnToState Ub_Crouch
   AnimationStateMachine.CreateState Ub_LieToStand
   AnimationStateMachine.addTransitionItem
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.CreateState Lb_CrouchToLie
   AnimationStateMachine.SetSoundTrigger c_SstToCrawl
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PCrouch2LieLower.baf 1.6 c_AsmPlayOnce
   AnimationStateMachine.AddTransitionWhenDone Lb_Lie
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetMorphFactor 4.0
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.CreateState Ub_CrouchToLieThompson
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PCrouch2LieUpperThompson.baf 1.6 c_AsmPlayOnce
   AnimationStateMachine.AddTransitionWhenDone Ub_LieThompson
   AnimationStateMachine.SetMorphFactor 4.0
   AnimationStateMachine.SetFlag c_AsmIsLying
   include copyToallWeapons.inc Thompson
   AnimationStateMachine.CreateState Lb_LieToCrouch
   AnimationStateMachine.SetSoundTrigger c_SstStandUp
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PCrouch2LieLower.baf -2 c_AsmPlayOnce
   AnimationStateMachine.AddTransitionWhenDone Lb_Crouch
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetMorphFactor 4.0
   AnimationStateMachine.SetFlag c_AsmIsCrouching
   rem AnimationStateMachine.setFlag c_AsmIsLying
   AnimationStateMachine.CreateState Ub_LieToCrouchThompson
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PCrouch2LieUpperThompson.baf -2 c_AsmPlayOnce
   AnimationStateMachine.AddTransitionWhenDone Ub_CrouchThompson
   AnimationStateMachine.SetMorphFactor 4.0
   include copyToallWeapons.inc Thompson
   AnimationStateMachine.CreateState Lb_LieToStand
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PCrouch2LieLower.baf -3 c_AsmPlayOnce
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetMorphFactor 2.0
   AnimationStateMachine.AddTransitionWhenDone Lb_CrouchToStand
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.CreateState Ub_LieToStandThompson
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PCrouch2LieUpperThompson.baf -2 c_AsmPlayOnce
   AnimationStateMachine.SetMorphFactor 4.0
   AnimationStateMachine.AddTransitionWhenDone Ub_CrouchToStand
   AnimationStateMachine.SetFlag c_AsmIsLying
   include copyToallWeapons.inc Thompson
   rem
   rem **** Is Lieing Lower Body
   rem
   AnimationStateMachine.CreateState Lb_Lie
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PLieBreathLower.baf 1 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_LieForward
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_LieBackward
   AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_LieStrafeLeft
   AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_LieStrafeRight
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_LieTurnLeft
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_LieTurnRight
   AnimationStateMachine.ReturnToState Lb_Lie
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetMorphFactor 2.0
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.CreateState Lb_LieForward
   AnimationStateMachine.SetSoundTrigger c_SstCrawlMove
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PLieForwardLower.baf 1 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_LieForward
   AnimationStateMachine.ReturnToState Lb_Lie
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetMorphFactor 2.0
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.SetCameraShakeUpDown 0 0.04 5.0
   AnimationStateMachine.SetCameraShakeFadeIn 0 0.3
   AnimationStateMachine.CreateState Lb_LieBackward
   AnimationStateMachine.SetSoundTrigger c_SstCrawlMove
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PLieForwardLower.baf -1 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_LieBackward
   AnimationStateMachine.ReturnToState Lb_Lie
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetMorphFactor 2.0
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.SetCameraShakeUpDown 0 0.04 5.0
   AnimationStateMachine.SetCameraShakeFadeIn 0 0.3
   rem --- Turn ---
   AnimationStateMachine.CreateState Lb_LieTurnLeft
   AnimationStateMachine.SetSoundTrigger c_SstCrawlMove
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PLieTurnLeftLower.baf 2 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_LieForward
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_LieBackward
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_LieTurnLeft
   AnimationStateMachine.ReturnToState Lb_Lie
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.SetCameraShakeUpDown 0 0.04 5.0
   AnimationStateMachine.SetCameraShakeFadeIn 0 0.3
   AnimationStateMachine.CreateState Lb_LieTurnRight
   AnimationStateMachine.SetSoundTrigger c_SstCrawlMove
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PLieTurnRightLower.baf 2 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_LieForward
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_LieBackward
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_LieTurnRight
   AnimationStateMachine.ReturnToState Lb_Lie
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.SetCameraShakeUpDown 0 0.04 5.0
   AnimationStateMachine.SetCameraShakeFadeIn 0 0.3
   rem --- Strafe ------
   AnimationStateMachine.CreateState Lb_LieStrafeLeft
   AnimationStateMachine.SetSoundTrigger c_SstCrawlMove
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PLieTurnLeftLower.baf 2 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_LieForward
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_LieBackward
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_LieTurnLeft
   AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_LieStrafeLeft
   AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_LieStrafeRight
   AnimationStateMachine.ReturnToState Lb_Lie
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.SetCameraShakeUpDown 0 0.04 5.0
   AnimationStateMachine.SetCameraShakeFadeIn 0 0.3
   AnimationStateMachine.CreateState Lb_LieStrafeRight
   AnimationStateMachine.SetSoundTrigger c_SstCrawlMove
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PLieTurnRightLower.baf 2 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_LieForward
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_LieBackward
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_LieTurnRight
   AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_LieStrafeLeft
   AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_LieStrafeRight
   AnimationStateMachine.ReturnToState Lb_Lie
   AnimationStateMachine.SetSpeed 1.0 1.0 1.0
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.SetCameraShakeUpDown 0 0.04 5.0
   AnimationStateMachine.SetCameraShakeFadeIn 0 0.3
   rem
   rem **** Is Lieing Upper Body
   rem
   AnimationStateMachine.CreateState Ub_Lie
   AnimationStateMachine.addTransitionItem
   rem *** Upper Thompson *****
   AnimationStateMachine.CreateState Ub_LieThompson
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PLieBreathUpperThompson.baf 1 c_AsmLooping
   AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pLieAimThompson.baf 0.2 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_LieForwardThompson
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_LieBackwardThompson
   AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Ub_LieStrafeLeftThompson
   AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_LieStrafeRightThompson
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Ub_LieTurnLeftThompson
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Ub_LieTurnRightThompson
   AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_LieFireThompson
   AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_LieAltFireThompson
   AnimationStateMachine.ReturnToState Ub_LieThompson
   AnimationStateMachine.SetMorphFactor 0.7
   include copyToallWeapons.inc Thompson
   AnimationStateMachine.CreateState Ub_LieForwardThompson
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PLieForwardUpperThompson.baf 1 c_AsmLooping
   AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pCrawlThompson.baf 1 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_LieFireThompson
   AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_LieAltFireThompson
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_LieForwardThompson
   AnimationStateMachine.ReturnToState Ub_LieThompson
   AnimationStateMachine.SetMorphFactor 0.5
   include copyToallWeapons.inc Thompson
   AnimationStateMachine.CreateState Ub_LieBackwardThompson
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PLieForwardUpperThompson.baf -1 c_AsmLooping
   AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pCrawlThompson.baf -1 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_LieFireThompson
   AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_LieAltFireThompson
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_LieBackwardThompson
   AnimationStateMachine.ReturnToState Ub_LieThompson
   AnimationStateMachine.SetMorphFactor 0.5
   include copyToallWeapons.inc Thompson
   rem --- Turn ---
   AnimationStateMachine.CreateState Ub_LieTurnLeftThompson
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PLieTurnLeftUpperThompson.baf 2 c_AsmLooping
   AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pCrawlThompson.baf 1 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_LieFireThompson
   AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_LieAltFireThompson
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_LieForwardThompson
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_LieBackwardThompson
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Ub_LieTurnLeftThompson
   AnimationStateMachine.ReturnToState Ub_LieThompson
   AnimationStateMachine.SetMorphFactor 0.5
   include copyToallWeapons.inc Thompson
   AnimationStateMachine.CreateState Ub_LieTurnRightThompson
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PLieTurnRightUpperThompson.baf 2 c_AsmLooping
   AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pCrawlThompson.baf 1 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_LieFireThompson
   AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_LieAltFireThompson
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_LieForwardThompson
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_LieBackwardThompson
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Ub_LieTurnRightThompson
   AnimationStateMachine.ReturnToState Ub_LieThompson
   AnimationStateMachine.SetMorphFactor 0.5
   include copyToallWeapons.inc Thompson
   rem ----- Strafe ------
   AnimationStateMachine.CreateState Ub_LieStrafeLeftThompson
   AnimationStateMachine.SetSoundTrigger c_SstCrawlMove
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PLieTurnLeftUpperThompson.baf 2 c_AsmLooping
   AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pCrawlThompson.baf 1 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_LieForwardThompson
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_LieBackwardThompson
   AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Ub_LieStrafeLeftThompson
   AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_LieStrafeRightThompson
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Ub_LieTurnRightThompson
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Ub_LieTurnLeftThompson
   AnimationStateMachine.ReturnToState Ub_LieThompson
   AnimationStateMachine.SetMorphFactor 0.5
   include copyToallWeapons.inc Thompson
   AnimationStateMachine.CreateState Ub_LieStrafeRightThompson
   AnimationStateMachine.SetSoundTrigger c_SstCrawlMove
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PLieTurnRightUpperThompson.baf 2 c_AsmLooping
   AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pCrawlThompson.baf 1 c_AsmLooping
   AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_LieForwardThompson
   AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_LieBackwardThompson
   AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Ub_LieStrafeLeftThompson
   AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_LieStrafeRightThompson
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Ub_LieTurnRightThompson
   AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Ub_LieTurnLeftThompson
   AnimationStateMachine.ReturnToState Ub_LieThompson
   AnimationStateMachine.SetMorphFactor 0.5
   include copyToallWeapons.inc Thompson
   rem
   rem RunToLie
   rem
   AnimationStateMachine.CreateState Lb_RunStandToLie
   AnimationStateMachine.AddAnimation Animations/Lie/LowerBody/3PJump2LieLower.baf 1.5 c_AsmPlayOnce
   AnimationStateMachine.AddTransitionWhenDone Lb_Lie
   AnimationStateMachine.SetSpeed 6.0 1.0 1.0
   AnimationStateMachine.SetMorphFactor 4.0
   AnimationStateMachine.SetCameraShakeYaw 0 0.15 8.0
   AnimationStateMachine.SetCameraShakeUpDown 0 0.08 15
   AnimationStateMachine.SetCameraShakeLeftRight 0 0.02 5
   AnimationStateMachine.SetCameraShakeFadeIn 0 0.6
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.CreateState Ub_RunStandToLie
   AnimationStateMachine.SetFlag c_AsmIsLying
   AnimationStateMachine.addTransitionItem
   AnimationStateMachine.CreateState Ub_RunStandToLieThompson
   AnimationStateMachine.AddAnimation Animations/Lie/3p/Thompson/3PJump2LieUpperThompson.baf 1.5 c_AsmPlayOnce
   AnimationStateMachine.AddTransitionWhenDone Ub_LieThompson
   AnimationStateMachine.SetMorphFactor 4.0


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