Help - Search - Members - Calendar
Full Version: Any way to speed up an animation through coding.
SWR Productions Forum > Game Modding and Development > Generals/Zerohour Modding
hawkseye17
Not by using gmax, just through the ini files.
n5p29
AnimationSpeedFactorRange is what you're looking for.

CODE
  Draw = W3DModelDraw ModuleTag_Whatever
    ConditionState = [conditionstate]
      Model = [modelname]
      Animation = [modelname].[modelname]
      AnimationSpeedFactorRange = [MinFloat] [MaxFloat]
    End
  End


Replace the MinFloat and MaxFloat with desired speed values (decimal):
AnimationSpeedFactorRange = 2.0 2.0 will be twice as fast
AnimationSpeedFactorRange = 0.5 0.5 will slow it down to half speed
hawkseye17
QUOTE (n5p29 @ 24 Sep 2016, 1:30) *
AnimationSpeedFactorRange is what you're looking for.

CODE
  Draw = W3DModelDraw ModuleTag_Whatever
    ConditionState = [conditionstate]
      Model = [modelname]
      Animation = [modelname].[modelname]
      AnimationSpeedFactorRange = [MinFloat] [MaxFloat]
    End
  End


Replace the MinFloat and MaxFloat with desired speed values (decimal):
AnimationSpeedFactorRange = 2.0 2.0 will be twice as fast
AnimationSpeedFactorRange = 0.5 0.5 will slow it down to half speed


Thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.