I found a bug using enhanced animations with Model Pack 10.
First off I can't use limb 0 which should be the parent limb of this model.
For Index = 0 To EnAn_ObjTotalLimbs(Weapons(CharacterWeapon).Object)
If EnAn_oacGetLimbIsActive(Weapons(CharacterWeapon).OacID, Index) = 0 Then EnAn_oacPlayAnim Weapons(CharacterWeapon).OacID, Index, Weapons(CharacterWeapon).Animations.Move, 0, 0, -1, 0, 1
Next Index
Everything checks out.
Here is the code:
If IsMoving = 1
For Index = 0 To EnAn_ObjTotalLimbs(Weapons(CharacterWeapon).Object)
If EnAn_oacGetLimbIsActive(Weapons(CharacterWeapon).OacID, Index) = 0 Then EnAn_oacPlayAnim Weapons(CharacterWeapon).OacID, Index, Weapons(CharacterWeapon).Animations.Move, 0, 0, -1, 0, 1
Next Index
EndIf
If IsShooting = 1
For Index = 0 To EnAn_ObjTotalLimbs(Weapons(CharacterWeapon).Object)
If EnAn_oacGetLimbIsActive(Weapons(CharacterWeapon).OacID, Index) = 0 Then EnAn_oacAnimTransition Weapons(CharacterWeapon).OacID, Index, Weapons(CharacterWeapon).Animations.StartFire, 0, 0, -1, 100, 0, 1
Next Index
EndIf
If IsMoving = 0 And IsShooting = 0
For Index = 0 To EnAn_ObjTotalLimbs(Weapons(CharacterWeapon).Object)
EnAn_oacAnimTransition Weapons(CharacterWeapon).OacID, Index, Weapons(CharacterWeapon).Animations.Idle, 0, 0, -1, 100, 0, 1
Next Index
EndIf
The code shouldn't matter seeing how the object is strangely deforming.
Thanks,
DigitalFury
Game Template: Standard Game Library of classes. Makes it easy to focus on your game and less on your code.