Usage:
AnimationStateMachine.AddToLatestTransition
string number boolean
Argument values:
argument 1: | c_PIWalk; most commonly c_PIWalk |
argument 2: | 0.5 |
argument 3: | 1 |
This property is not a part of any defined type of object.
Used in a total of 2 .con files: Animationstateslower.con, Animationstatesupper.con
Parent directory of these .con files: Animations
Example: (from Animations/AnimationStatesUpper.con)
rem ***************************
rem *** Upper body states ***
rem ***************************
AnimationStateMachine.CreateState Ub_Stand
AnimationStateMachine.addTransitionItem
AnimationStateMachine.CreateState Ub_StandAim
AnimationStateMachine.addTransitionItem
rem
rem *** ------- UPPER BODY ------
rem
rem
rem *** Thompson
rem
AnimationStateMachine.CreateState Ub_StandThompson
AnimationStateMachine.AddAnimation Animations/StandWalkRun/3p/Thompson/3PStandUpperThompson.baf 0.8 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1PStandThompson.baf 0.1 1
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_Fire
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFire
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_RunForwardThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_RunBackwardThompson
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Ub_StrafeLeftThompson
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Ub_StandJumpThompson
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_StrafeRightThompson
AnimationStateMachine.AddTransitionOne c_PIMouseLookX -1000 -0.0001 Ub_TurnThompson
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.0001 1000 Ub_TurnThompson
AnimationStateMachine.ReturnToState Ub_StandThompson
AnimationStateMachine.SetMorphFactor 0.3
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_TurnThompson
AnimationStateMachine.AddAnimation Animations/StandWalkRun/3p/Thompson/3PRunUpperThompson.baf 1.6 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf 0.7 1
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_Fire
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFire
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_RunForwardThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle 1 0.5 Ub_RunBackwardThompson
AnimationStateMachine.AddTransitionOne c_PIYaw 1 0.01 Ub_StrafeLeftThompson
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Ub_StandJumpThompson
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_StrafeRightThompson
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 1 0.01 Ub_TurnThompson
AnimationStateMachine.AddTransitionOne c_PIMouseLookX 0.01 1 Ub_TurnThompson
AnimationStateMachine.ReturnToState Ub_StandAimThompson
AnimationStateMachine.SetMorphFactor 2.0
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_StandAimThompson
AnimationStateMachine.AddAnimation Animations/StandWalkRun/3p/Thompson/3PStandAimUpperThompson.baf 0.8 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1PStandAimThompson.baf 0.1 1
AnimationStateMachine.AddIdle Ub_IdleThompson1
AnimationStateMachine.AddIdle Ub_IdleThompson2
AnimationStateMachine.AddIdle Ub_IdleThompson3
rem *** AnimationStateMachine.addIdle Ub_IdleThompson4
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_Fire
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFire
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_RunForwardThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_RunBackwardThompson
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Ub_StrafeLeftThompson
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Ub_StandJumpThompson
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_StrafeRightThompson
AnimationStateMachine.ReturnToState Ub_StandAimThompson
AnimationStateMachine.SetMorphFactor 0.7
include copyToallWeapons.inc Thompson
rem --- Walk ----
AnimationStateMachine.CreateState Ub_WalkForwardThompson
AnimationStateMachine.AddAnimation Animations/StandWalkRun/3p/Thompson/3PWalkUpperThompson.baf 0.7 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf 0.5 1
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_Fire
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFire
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_WalkForwardThompson
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIThrottle -9999 -0.5 Ub_WalkBackwardThompson
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Ub_StandJumpThompson
AnimationStateMachine.ReturnToState Ub_StandAimThompson
AnimationStateMachine.SetMorphFactor 0.5
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_WalkBackwardThompson
AnimationStateMachine.AddAnimation Animations/StandWalkRun/3p/Thompson/3PWalkUpperThompson.baf -0.7 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf -0.5 1
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_Fire
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFire
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_WalkForwardThompson
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.AddTransitionOne c_PIThrottle -9999 -0.5 Ub_WalkBackwardThompson
AnimationStateMachine.AddToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.ReturnToState Ub_StandAimThompson
AnimationStateMachine.SetMorphFactor 0.5
include copyToallWeapons.inc Thompson
rem --- Run ----
AnimationStateMachine.CreateState Ub_RunForwardThompson
AnimationStateMachine.AddAnimation Animations/StandWalkRun/3p/Thompson/3PRunUpperThompson.baf 1.6 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf 0.7 1
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_Fire
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFire
AnimationStateMachine.AddTransitionOne c_PIWalk 0.5 9999 Ub_WalkForwardThompson
AnimationStateMachine.AddTransitionOne c_PIAction 0.5 1 Ub_RunJumpThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle 0.5 1 Ub_RunForwardThompson
AnimationStateMachine.ReturnToState Ub_StandAimThompson
AnimationStateMachine.SetMorphFactor 0.5
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_RunBackwardThompson
AnimationStateMachine.AddAnimation Animations/StandWalkRun/3p/Thompson/3PRunBackUpperThompson.baf -1.6 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf -0.7 1
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_Fire
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFire
AnimationStateMachine.AddTransitionOne c_PIWalk 0.5 9999 Ub_WalkBackwardThompson
AnimationStateMachine.AddTransitionOne c_PIThrottle -1 -0.5 Ub_RunBackwardThompson
AnimationStateMachine.ReturnToState Ub_StandAimThompson
AnimationStateMachine.SetMorphFactor 0.5
include copyToallWeapons.inc Thompson
rem --- Strafe ----
AnimationStateMachine.CreateState Ub_StrafeLeftThompson
AnimationStateMachine.AddAnimation Animations/StandWalkRun/3p/Thompson/3PRunUpperThompson.baf -1.6 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf -0.7 1
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_Fire
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFire
AnimationStateMachine.AddTransitionOne c_PIYaw -1 -0.01 Ub_StrafeLeftThompson
AnimationStateMachine.ReturnToState Ub_StandAimThompson
AnimationStateMachine.SetMorphFactor 0.5
include copyToallWeapons.inc Thompson
AnimationStateMachine.CreateState Ub_StrafeRightThompson
AnimationStateMachine.AddAnimation Animations/StandWalkRun/3p/Thompson/3PRunUpperThompson.baf 1.6 1
AnimationStateMachine.AddAnimation Animations/StandWalkRun/1p/Thompson/1pRunThompson.baf 0.7 1
AnimationStateMachine.AddTransitionOne c_PIFire 0.5 1 Ub_Fire
AnimationStateMachine.AddTransitionOne c_PIAltFire 0.5 1 Ub_AltFire
AnimationStateMachine.AddTransitionOne c_PIYaw 0.01 1 Ub_StrafeRightThompson
AnimationStateMachine.ReturnToState Ub_StandAimThompson
AnimationStateMachine.SetMorphFactor 0.5
include copyToallWeapons.inc Thompson
rem *** Animations to make the sprint in the Allies Grenade move.
AnimationStateMachine.SetActiveState Ub_StandGrenadeAllies
AnimationStateMachine.SetOtherState c_AsmWeaponState WeaponGrenadeAlliesStand
AnimationStateMachine.SetActiveState Ub_StandAimGrenadeAllies
AnimationStateMachine.SetOtherState c_AsmWeaponState WeaponGrenadeAlliesStand
AnimationStateMachine.SetActiveState Ub_StrafeRightGrenadeAllies
AnimationStateMachine.SetOtherState c_AsmWeaponState WeaponGrenadeAlliesRun
AnimationStateMachine.SetActiveState Ub_StrafeLeftGrenadeAllies
AnimationStateMachine.SetOtherState c_AsmWeaponState WeaponGrenadeAlliesRun
AnimationStateMachine.SetActiveState Ub_RunForwardGrenadeAllies
AnimationStateMachine.SetOtherState c_AsmWeaponState WeaponGrenadeAlliesRun
AnimationStateMachine.SetActiveState Ub_RunBackwardGrenadeAllies
AnimationStateMachine.SetOtherState c_AsmWeaponState WeaponGrenadeAlliesRun
AnimationStateMachine.SetActiveState Ub_WalkForwardGrenadeAllies
AnimationStateMachine.SetOtherState c_AsmWeaponState WeaponGrenadeAlliesWalk
AnimationStateMachine.SetActiveState Ub_WalkBackwardGrenadeAllies
AnimationStateMachine.SetOtherState c_AsmWeaponState WeaponGrenadeAlliesWalk
AnimationStateMachine.CreateState WeaponGrenadeAlliesRun
AnimationStateMachine.AddAnimation Animations/Weapons/GrenadeAllies/GrenadeAlliesRun.baf 1.45 c_AsmPlayLooping
AnimationStateMachine.CreateState WeaponGrenadeAlliesWalk
AnimationStateMachine.AddAnimation Animations/Weapons/GrenadeAllies/GrenadeAlliesRun.baf 1.0 c_AsmPlayLooping
AnimationStateMachine.CreateState WeaponGrenadeAlliesStand
AnimationStateMachine.AddAnimation Animations/Weapons/GrenadeAllies/GrenadeAlliesStand.baf 0.4 c_AsmPlayLooping
Go to the AnimationStateMachine properties list page, AnimationStateMachine page, All Properties list, or Main scripting page.