[Solved] Reversing animations?

Avatar
Konke
161 Posts
Posted Mar 05, 2014
I want to use a certain animation on a 64 arm but it's seems it's only one way. There a animation for the arm to go out but not in. Is there a way to reverse the animation so I kind of cheat it back in?
Advertisement
Registered users don't see ads! Register now!
Avatar
Skotty
671 Posts
Posted Mar 05, 2014
Replied 23 minutes later
SetPlaybackRate input with value -1.
Avatar
Konke
161 Posts
Posted Mar 05, 2014
Replied 1 hour later
I'm not sure I follow. How should it look? My relay to put them out looks like this:

My Output: OnTrigger
Target Entity: thrust_arm_0101
Target Input: SetAnimation
Parameter: trustflings_platfor_b01

and

My Output: OnTrigger
Target Entity: thrust_arm_0101
Target Input: SetDefaultAnimation
Parameter: trustflings_platfor_b01_idleend

This is for the same arm. How do I get it back in?

Avatar
TeamSpen210
608 Posts
Posted Mar 05, 2014
Replied 12 minutes later
Set "hold animation" to yes on the prop_dynamic and delete the setDefaultAnimation output. Put the animation name (trustflings_platfor_b01) into the Default animation keyvalue on the prop_dynamic. Now you can send inputs of SetPlaybackRate with a parameter of 1 or -1 to play the animation forwards or backwards. You'd probably want to SetPlaybackRate -1 in the logic_auto before you trigger SetParentAttachmentMaintainOffset.
Avatar
Konke
161 Posts
Posted Mar 06, 2014
Replied 19 hours later

TeamSpen210 wrote:
Set "hold animation" to yes on the prop_dynamic and delete the setDefaultAnimation output. Put the animation name (trustflings_platfor_b01) into the Default animation keyvalue on the prop_dynamic. Now you can send inputs of SetPlaybackRate with a parameter of 1 or -1 to play the animation forwards or backwards. You'd probably want to SetPlaybackRate -1 in the logic_auto before you trigger SetParentAttachmentMaintainOffset.

Thank you, now it works! Although, in Hammer the arm's animation keeps repeating. Ingame it works so I'm satisfied. It's just that it's kind of ennoying to see a arm in the Hammer editor moving all the time.

Avatar
HMW
806 Posts
Posted Mar 06, 2014
Replied 2 hours later
If you go into Tools => Options => 3D views, there's a setting to turn animations off in Hammer.
Although it often turns them back on for no reason.
Avatar
Konke
161 Posts
Posted Mar 06, 2014
Replied 15 minutes later

HMW wrote:
If you go into Tools => Options => 3D views, there's a setting to turn animations off in Hammer.
Although it often turns them back on for no reason.

Thanks, seems to be working!

Advertisement
Registered users don't see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Mar 06, 2014
Replied 6 hours later
You can also go to the Model tab on the entity and choose an animation to show in the editor.