Alors pour Haldir, son animation est :
- Code:
-
AnimationState = ATTACKING
StateName = Ready_Sword
Animation = Alert_1
AnimationName = EUHaldir_IDLST1
AnimationMode = LOOP
End
Pour Elrond, ses animations sont :
- Code:
-
AnimationState = FIRING_OR_PREATTACK_A
StateName = Ready_Sword
Animation = AttackWithSwordA
AnimationName = RUElrond_SKL.RUElrond_ATKSV2
AnimationMode = ONCE
UseWeaponTiming = Yes
End
Animation = AttackWithSwordB
AnimationName = RUElrond_SKL.RUElrond_ATKS
AnimationMode = ONCE
UseWeaponTiming = Yes
End
Animation = AttackWithSwordD
AnimationName = RUElrond_SKL.RUElrond_ATKSV4
AnimationMode = ONCE
UseWeaponTiming = Yes
End
BeginScript
CurDrawableHideSubObject("ArrowNock")
CurDrawableHideSubObject("arrow")
EndScript
End
Et voilà l'animation du héros créé de l'Elfe Male :
- Code:
-
AnimationState = FIRING_OR_PREATTACK_A MOUNTED // Melee attack.
Animation
AnimationName = #(MODEL)_M_ATKA #(MODEL)_M_ATKB
AnimationMode = ONCE
UseWeaponTiming = Yes
End
End
Il faut juste remplacer la ligne "AnimationName".
Il te faudra choisir entre l'animation de combat de Haldir ou de Elrond, je te recommande Haldir, qui en possède qu'une et qui sera plus simple pour toi.
Je prend l'exemple d'Haldir, son nom d'animation est "EUHaldir_IDLST1", tu le remplaces au nom d'animation du héros créé, qui lui est : "#(MODEL)_M_ATKA #(MODEL)_M_ATKB".
Maintenant, tu peux changer le "AnimationState" de la même manière. Celui d'Haldir est "ATTACKING", et tu remplaces celui du héros créé.
J'ai jamais fait le test parce-que je n'en ai pas besoin, mais dis-moi si ça ne marche pas.
Repère bien le changement d'attaque des héros.
A bientôt...