Usage:
AnimationStateMachine.SetCameraShakeYaw
boolean number number
Argument values:
argument 1: | 0, 1; most commonly 0 |
argument 2: | range is -0.03 to 0.5; most commonly 0.10 |
argument 3: | range is 0.5 to 700.0; most commonly 700.0 |
Description: Setting this property causes the camera shake to rotate side to side compared to the view direction.
Related properties: SetCameraShakeFadeIn, SetCameraShakeFadeOut, SetCameraShakeInOut, SetCameraShakeLeftRight, SetCameraShakeMinFactor, SetCameraShakePitch, SetCameraShakeRoll, SetCameraShakeTimeToShake, SetCameraShakeUpDown
This property is not a part of any defined type of object.
Used in a total of 4 .con files: Animationstatescamerashakes.con, Animationstatescamerashakesmod.con, Animationstateslie.con, Animationstateslower.con
Parent directory of these .con files: Animations
Example: (from Animations/AnimationStatesLower.con)
rem ***************************
rem *** Lower body states ***
rem ***************************
AnimationStateMachine.CreateState Lb_Stand
AnimationStateMachine.SetSoundTrigger c_SstStand
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PStandLower.baf 0.8 1
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_RunForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_RunBackward
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_TurnLeft
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_TurnRight
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_StrafeLeft
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_StrafeRight
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_StandJump
AnimationStateMachine.AddIdle Lb_StandRelax
AnimationStateMachine.ReturnToState Lb_Stand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.CreateState Lb_StandRelax
AnimationStateMachine.SetSoundTrigger c_SstStand
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PStandRelaxLower.baf 0.8 1
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_RunForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_RunBackward
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_TurnLeft
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_TurnRight
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_StrafeLeft
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_StrafeRight
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_StandJump
AnimationStateMachine.ReturnToState Lb_StandRelax
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
rem --- Walk ---
AnimationStateMachine.CreateState Lb_WalkForward
AnimationStateMachine.SetSoundTrigger c_SstWalk
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PWalkLower.baf 0.7 1
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_StandJump
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_WalkForward
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIThrottle -9999 -0.5 Lb_WalkBackward
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_RunForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_RunBackward
AnimationStateMachine.AddTransitionOne c_PIYaw 0.5 1 Lb_WalkForward
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.5 Lb_WalkForward
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.ReturnToState Lb_Stand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 3.0
AnimationStateMachine.SetCameraShakeUpDown 0 0.06 7
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 0.5
AnimationStateMachine.SetCameraShakeFadeIn 0 0.6
AnimationStateMachine.CreateState Lb_WalkBackward
AnimationStateMachine.SetSoundTrigger c_SstWalk
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PWalkLower.baf -0.7 1
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_StandJump
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_WalkForward
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIThrottle -9999 -0.5 Lb_WalkBackward
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_RunForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_RunBackward
AnimationStateMachine.ReturnToState Lb_Stand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 3.0
AnimationStateMachine.SetCameraShakeUpDown 0 0.06 7
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 0.5
AnimationStateMachine.SetCameraShakeFadeIn 0 0.6
rem --- Run ---
AnimationStateMachine.CreateState Lb_RunForward
AnimationStateMachine.SetSoundTrigger c_SstRun
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PRunLower.baf 1.6 1
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_RunJump
AnimationStateMachine.AddTransitionOne c_PIWalk 0.5 1 Lb_WalkForward
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_RunForward
AnimationStateMachine.ReturnToState Lb_Stand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.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.CreateState Lb_RunBackward
AnimationStateMachine.SetSoundTrigger c_SstRun
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PRunBackLower.baf -1.6 1
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_RunJumpBackward
AnimationStateMachine.AddTransitionOne c_PIWalk 0.5 1 Lb_WalkBackward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_RunBackward
AnimationStateMachine.ReturnToState Lb_Stand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.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
rem DO NOT USE STOP ANIMATIONS!
rem AnimationStateMachine.createState Lb_RunStop
rem AnimationStateMachine.addAnimation Animations/StandWalkRun/LowerBody/3PRunStopLower.baf 2 0
rem AnimationStateMachine.addTransitionWhenDone Lb_Stand
rem AnimationStateMachine.setMorphFactor 5.0
rem --- Turn ---
AnimationStateMachine.CreateState Lb_TurnLeft
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PTurnLower.baf 2 1
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_StandJump
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_RunForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_RunBackward
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_StrafeLeft
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_StrafeRight
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_TurnLeft
AnimationStateMachine.ReturnToState Lb_Stand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.CreateState Lb_TurnRight
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PTurnLower.baf -2 1
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_StandJump
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_RunForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_RunBackward
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_StrafeLeft
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_StrafeRight
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_TurnRight
AnimationStateMachine.ReturnToState Lb_Stand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
rem --- Strafe ---
AnimationStateMachine.CreateState Lb_StrafeLeft
AnimationStateMachine.SetSoundTrigger c_SstRun
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PRunLower.baf 1.6 1
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_RunJump
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_WalkForward
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_RunForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_RunBackward
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Lb_StrafeLeft
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_TurnLeft
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_TurnRight
AnimationStateMachine.ReturnToState Lb_Stand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.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.CreateState Lb_StrafeRight
AnimationStateMachine.SetSoundTrigger c_SstRun
AnimationStateMachine.AddAnimation Animations/StandWalkRun/LowerBody/3PRunLower.baf 1.6 1
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Lb_RunJump
AnimationStateMachine.AddTransitionOne c_PIYaw 0.5 1 Lb_WalkForward
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Lb_RunForward
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Lb_RunBackward
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Lb_StrafeRight
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1 -0.01 Lb_TurnLeft
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Lb_TurnRight
AnimationStateMachine.ReturnToState Lb_Stand
AnimationStateMachine.SetSpeed 1.0 1.0 1.0
AnimationStateMachine.SetMorphFactor 2.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
Go to the AnimationStateMachine properties list page, AnimationStateMachine page, All Properties list, or Main scripting page.