Stop model in the middle of animation

Avatar
Konke
161 Posts
Posted Jul 30, 2014
I would like to stop an arm panel's animation before it ends. Is this possible, not to let the animation run the whole course? Thanks in advance!
Advertisement
Registered users don't see ads! Register now!
Avatar
josepezdj
2,386 Posts
Posted Jul 30, 2014
Replied 36 minutes later
>.<
Avatar
Konke
161 Posts
Posted Jul 30, 2014
Replied 1 hour later

josepezdj wrote:
>.<

Yeah, that's just plain embarrasing. Thanks for the reminder.

Advertisement
Registered users don't see ads! Register now!
Avatar
josepezdj
2,386 Posts
Posted Jul 31, 2014
Replied 11 hours later

Konke wrote:
Yeah, that's just plain embarrasing. Thanks for the reminder.

Haha, don't worry about that.

I assume that you didn't eventually manage it and/or that you had a memory loss :p, so I made a quick test map for you. Check out the attachment (you know, the VMF file under sdk_content/maps/ folder and the BSP under whatever of your /maps folders).

Notes:

  • I used 3 pedestal buttons: the leftmost one starts the animation of the arm model with a playback rate of 0.35, so that it's slow enough to give us time to press the following button (you could use whatever value between 0 and 1); the middle one stops the animation and the rightmost one has a playback rate of -0.35 and therefore will play the animation backwards.

  • In order to use the SetPlaybackRate output on a prop_dynamic, you must first define a "Default Animation", maybe you missed that step? Remember also to set the "Hold Animation" property to YES.

Don't hesitate to ask for whatever doubt.