Usage:
AnimationStateMachine.SetCameraShakeInOut
boolean number number
Argument values:
argument 1: | 0; most commonly 0 |
argument 2: | 0.01 0.05 0.3 0.4 |
argument 3: | range is 8 to 3000; most commonly 2000 |
Description: Setting this property causes the camera shake to move in and out, along the view direction.
Related properties: SetCameraShakeFadeIn, SetCameraShakeFadeOut, SetCameraShakeLeftRight, SetCameraShakeMinFactor, SetCameraShakePitch, SetCameraShakeRoll, SetCameraShakeTimeToShake, SetCameraShakeUpDown, SetCameraShakeYaw
This property is not a part of any defined type of object.
Used in a total of 2 .con files: Animationstatescamerashakes.con, Animationstatescamerashakesmod.con
Parent directory of these .con files: Animations
Example: (from Animations/AnimationStatesCameraShakes.con)
rem
rem ** Hit, Die, Explosion etc.
rem
AnimationStateMachine.CreateState BigExplosion
AnimationStateMachine.SetCameraShakePitch 0 2 300.0
AnimationStateMachine.SetCameraShakeRoll 0 0.8 200.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.7 400.0
AnimationStateMachine.SetCameraShakeUpDown 0 0.8 500.0
AnimationStateMachine.SetCameraShakeFadeOut 0 1.2
AnimationStateMachine.CreateState SmallExplosion
AnimationStateMachine.SetCameraShakeUpDown 0 0 15
AnimationStateMachine.SetCameraShakeLeftRight 0 0 10
AnimationStateMachine.SetCameraShakePitch 0 1 100.0
AnimationStateMachine.SetCameraShakeRoll 0 0.5 100.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.3 100.0
AnimationStateMachine.SetCameraShakeUpDown 0 0.2 300.0
AnimationStateMachine.SetCameraShakeFadeOut 0 2.0
AnimationStateMachine.CreateState HitShake
AnimationStateMachine.SetCameraShakeRoll 0 4.0 50.0
AnimationStateMachine.SetCameraShakePitch 0 1.5 200.00
AnimationStateMachine.SetCameraShakeFadeOut 0 5.0
AnimationStateMachine.CreateState DieShake
AnimationStateMachine.SetCameraShakeRoll 0 4.0 50.0
AnimationStateMachine.SetCameraShakePitch 0 1.5 200.00
AnimationStateMachine.SetCameraShakeFadeOut 0 5.0
rem
rem ** Weapons ****
rem
rem *** bazooka, panzershreck
AnimationStateMachine.SetActiveState Ub_FireBazooka
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.5 100.0
AnimationStateMachine.SetCameraShakeUpDown 0 1 500
AnimationStateMachine.SetCameraShakeInOut 0 0.4 8
AnimationStateMachine.SetCameraShakeLeftRight 0 0.8 100
AnimationStateMachine.SetCameraShakeFadeOut 0 3
AnimationStateMachine.SetActiveState Ub_LieFireBazooka
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.5 100.0
AnimationStateMachine.SetCameraShakeUpDown 0 1 500
AnimationStateMachine.SetCameraShakeInOut 0 0.4 8
AnimationStateMachine.SetCameraShakeLeftRight 0 0.8 100
AnimationStateMachine.SetCameraShakeFadeOut 0 3
AnimationStateMachine.SetActiveState Ub_FirePanzershreck
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.5 100.0
AnimationStateMachine.SetCameraShakeUpDown 0 1 500
AnimationStateMachine.SetCameraShakeInOut 0 0.4 8
AnimationStateMachine.SetCameraShakeLeftRight 0 0.8 100
AnimationStateMachine.SetCameraShakeFadeOut 0 3
AnimationStateMachine.SetActiveState Ub_LieFirePanzershreck
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.5 100.0
AnimationStateMachine.SetCameraShakeUpDown 0 1 500
AnimationStateMachine.SetCameraShakeInOut 0 0.4 8
AnimationStateMachine.SetCameraShakeLeftRight 0 0.8 100
AnimationStateMachine.SetCameraShakeFadeOut 0 3
rem *** colt, walter
AnimationStateMachine.SetActiveState Ub_FireWalterP38
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.10 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.03 4000
AnimationStateMachine.SetCameraShakeInOut 0 0.3 3000
AnimationStateMachine.SetCameraShakeUpDown 0 0.03 3500
AnimationStateMachine.SetCameraShakeFadeOut 0 8
AnimationStateMachine.SetActiveState Ub_LieFireWalterP38
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.10 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.03 4000
AnimationStateMachine.SetCameraShakeInOut 0 0.3 3000
AnimationStateMachine.SetCameraShakeUpDown 0 0.03 3500
AnimationStateMachine.SetCameraShakeFadeOut 0 8
AnimationStateMachine.SetActiveState Ub_FireColt
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.10 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.03 4000
AnimationStateMachine.SetCameraShakeInOut 0 0.3 3000
AnimationStateMachine.SetCameraShakeUpDown 0 0.03 3500
AnimationStateMachine.SetCameraShakeFadeOut 0 8
AnimationStateMachine.SetActiveState Ub_LieFireColt
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.10 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.03 4000
AnimationStateMachine.SetCameraShakeInOut 0 0.3 3000
AnimationStateMachine.SetCameraShakeUpDown 0 0.03 3500
AnimationStateMachine.SetCameraShakeFadeOut 0 8
rem *** grenade
AnimationStateMachine.SetActiveState Ub_FireGrenadeAllies
AnimationStateMachine.SetCameraShakeRoll 0 0 800.0
AnimationStateMachine.SetCameraShakePitch 0 0 900.0
AnimationStateMachine.SetActiveState Ub_LieFireGrenadeAllies
AnimationStateMachine.SetCameraShakeRoll 0 0 800.0
AnimationStateMachine.SetCameraShakePitch 0 0 900.0
AnimationStateMachine.SetActiveState Ub_FireGrenadeAxis
AnimationStateMachine.SetCameraShakeRoll 0 0 800.0
AnimationStateMachine.SetCameraShakePitch 0 0 900.0
AnimationStateMachine.SetActiveState Ub_LieFireGrenadeAxis
AnimationStateMachine.SetCameraShakeRoll 0 0 800.0
AnimationStateMachine.SetCameraShakePitch 0 0 900.0
rem *** Thompson, Mp40, MP18
AnimationStateMachine.SetActiveState Ub_FireThompson
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.05 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.05 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.01 2000
AnimationStateMachine.SetActiveState Ub_LieFireThompson
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.05 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.05 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.01 2000
AnimationStateMachine.SetActiveState Ub_FireMp40
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.05 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.05 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.01 2000
AnimationStateMachine.SetActiveState Ub_LieFireMp40
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.05 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.05 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.01 2000
AnimationStateMachine.SetActiveState Ub_FireMp18
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.05 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.05 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.01 2000
AnimationStateMachine.SetActiveState Ub_LieFireMp18
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.05 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.05 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.01 2000
rem *** Sg44, Bar1918, DP, Type99
AnimationStateMachine.SetActiveState Ub_FireBar1918
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
AnimationStateMachine.SetActiveState Ub_LieFireBar1918
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
AnimationStateMachine.SetActiveState Ub_FireSg44
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
AnimationStateMachine.SetActiveState Ub_LieFireSg44
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
AnimationStateMachine.SetActiveState Ub_FireDP
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
AnimationStateMachine.SetActiveState Ub_LieFireDP
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
AnimationStateMachine.SetActiveState Ub_FireType99
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
AnimationStateMachine.SetActiveState Ub_LieFireType99
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
rem *** riffle
AnimationStateMachine.SetActiveState Ub_FireNo4
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.5 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.03 4000
AnimationStateMachine.SetCameraShakeInOut 0 0.3 3000
AnimationStateMachine.SetCameraShakeUpDown 0 0.08 3500
AnimationStateMachine.SetCameraShakeFadeOut 0 8
AnimationStateMachine.SetActiveState Ub_LieFireNo4
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.5 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.03 4000
AnimationStateMachine.SetCameraShakeInOut 0 0.3 3000
AnimationStateMachine.SetCameraShakeUpDown 0 0.08 3500
AnimationStateMachine.SetCameraShakeFadeOut 0 8
AnimationStateMachine.SetActiveState Ub_FireK98
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.5 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.03 4000
AnimationStateMachine.SetCameraShakeInOut 0 0.3 3000
AnimationStateMachine.SetCameraShakeUpDown 0 0.08 3500
AnimationStateMachine.SetCameraShakeFadeOut 0 8
AnimationStateMachine.SetActiveState Ub_LieFireK98
AnimationStateMachine.SetCameraShakeRoll 0 0.25 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.5 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.10 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.03 4000
AnimationStateMachine.SetCameraShakeInOut 0 0.3 3000
AnimationStateMachine.SetCameraShakeUpDown 0 0.08 3500
AnimationStateMachine.SetCameraShakeFadeOut 0 8
rem ** Sniper weapons
AnimationStateMachine.SetActiveState Ub_FireNo4Sniper
AnimationStateMachine.SetCameraShakePitch 0 2.0 10
AnimationStateMachine.SetCameraShakeFadeOut 0 4.0
AnimationStateMachine.SetCameraShakePitch 1 0.1 1.0
AnimationStateMachine.SetCameraShakeYaw 1 -0.03 2.3
AnimationStateMachine.SetActiveState Ub_LieFireNo4Sniper
AnimationStateMachine.SetCameraShakePitch 0 2.0 10
AnimationStateMachine.SetCameraShakeFadeOut 0 4.0
AnimationStateMachine.SetCameraShakePitch 1 0.1 1.0
AnimationStateMachine.SetCameraShakeYaw 1 -0.03 2.3
AnimationStateMachine.SetActiveState Ub_StandAimNo4Sniper
AnimationStateMachine.clearAllIdles
AnimationStateMachine.SetCameraShakePitch 0 0.25 1.5
AnimationStateMachine.SetCameraShakeYaw 0 0.2 0.5
AnimationStateMachine.SetCameraShakeMinFactor 0 0.075
AnimationStateMachine.SetCameraShakeFadeOut 0 0.25
AnimationStateMachine.SetActiveState Ub_CrouchNo4Sniper
AnimationStateMachine.clearAllIdles
AnimationStateMachine.SetCameraShakePitch 0 0.20 1.5
AnimationStateMachine.SetCameraShakeYaw 0 0.15 0.5
AnimationStateMachine.SetCameraShakeMinFactor 0 0.075
AnimationStateMachine.SetCameraShakeFadeOut 0 0.25
AnimationStateMachine.SetActiveState Ub_LieNo4Sniper
AnimationStateMachine.clearAllIdles
AnimationStateMachine.SetCameraShakePitch 0 0.15 1.5
AnimationStateMachine.SetCameraShakeYaw 0 0.10 0.5
AnimationStateMachine.SetCameraShakeMinFactor 0 0.075
AnimationStateMachine.SetCameraShakeFadeOut 0 0.25
AnimationStateMachine.SetActiveState Ub_FireK98Sniper
AnimationStateMachine.SetCameraShakePitch 0 2.0 10
AnimationStateMachine.SetCameraShakeFadeOut 0 4.0
AnimationStateMachine.SetCameraShakePitch 1 0.1 1.0
AnimationStateMachine.SetCameraShakeYaw 1 -0.03 2.3
AnimationStateMachine.SetActiveState Ub_LieFireK98Sniper
AnimationStateMachine.SetCameraShakePitch 0 2.0 10
AnimationStateMachine.SetCameraShakeFadeOut 0 4.0
AnimationStateMachine.SetCameraShakePitch 1 0.1 1.0
AnimationStateMachine.SetCameraShakeYaw 1 -0.03 2.3
AnimationStateMachine.SetActiveState Ub_StandAimK98Sniper
AnimationStateMachine.clearAllIdles
AnimationStateMachine.SetCameraShakePitch 0 0.25 1.5
AnimationStateMachine.SetCameraShakeYaw 0 0.2 0.5
AnimationStateMachine.SetCameraShakeMinFactor 0 0.075
AnimationStateMachine.SetCameraShakeFadeOut 0 0.25
AnimationStateMachine.SetActiveState Ub_CrouchK98Sniper
AnimationStateMachine.clearAllIdles
AnimationStateMachine.SetCameraShakePitch 0 0.20 1.5
AnimationStateMachine.SetCameraShakeYaw 0 0.15 0.5
AnimationStateMachine.SetCameraShakeMinFactor 0 0.075
AnimationStateMachine.SetCameraShakeFadeOut 0 0.25
AnimationStateMachine.SetActiveState Ub_LieK98Sniper
AnimationStateMachine.clearAllIdles
AnimationStateMachine.SetCameraShakePitch 0 0.15 1.5
AnimationStateMachine.SetCameraShakeYaw 0 0.10 0.5
AnimationStateMachine.SetCameraShakeMinFactor 0 0.075
AnimationStateMachine.SetCameraShakeFadeOut 0 0.25
AnimationStateMachine.SetActiveState Ub_FireJohnsonLMG
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
AnimationStateMachine.SetActiveState Ub_LieFireJohnsonLMG
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
AnimationStateMachine.SetCameraShakeLeftRight 0 0.01 2000
AnimationStateMachine.SetCameraShakeInOut 0 0.05 2000
rem *** stationary machineguns *****
AnimationStateMachine.CreateState FireMachineGunShake
AnimationStateMachine.SetCameraShakeTimeToShake 0 0.1
AnimationStateMachine.SetCameraShakeRoll 0 0.5 800.0
AnimationStateMachine.SetCameraShakePitch 0 0.25 900.0
AnimationStateMachine.SetCameraShakeYaw 0 0.25 700.0
Go to the AnimationStateMachine properties list page, AnimationStateMachine page, All Properties list, or Main scripting page.