Please or Register to create posts and topics.

[Solved] Reversing animations?

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?

SetPlaybackRate input with value -1.

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?

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.

My stuff:
[spoiler]- BEE2 Addons | (BEE2)
- Hammer Addons
Maps:
- Crushed Gel
- Gel is Not Always Helpful[/spoiler]
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.

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.

Sendificate series: Sendificate | A Beam Too Far | Airtime | 302
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
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!

You can also go to the Model tab on the entity and choose an animation to show in the editor.

Falsi sumus crusto!