Hello everyone, I'm trying to create "skills" usable for the character when you press a button.
The problem is that no matter how I try, the character won't play the animation I want him to.
Example: Press V --> Do Animation --> Do Stuff
What I have now is: Press V --> Do Stuff
Does anyone know how to "force" animations on the character? I've used both AI_PlayAni and Npc_PlayAni without success.
func void Ultimate(var C_Npc slf)
{
var oCNpc her; her = Hlp_GetNpc(hero);
var int UltDone;
if (((MEM_KeyState (KEY_U) == KEY_PRESSED) && (Hlp_Is_oCNpc (her.focus_vob))) && (Npc_HasReadiedMeleeWeapon (hero)))
{
Ultdone = TRUE;
var c_npc target; target = MEM_PtrToInst (her.focus_vob);
NPC_PlayAni(slf,"T_EXCALIBUR_S0_2_S1");
FF_ApplyOnceExt(Damage, 800, 1);
};
func void Damage(var C_Npc slf,var C_Npc oth)
{
var oCNpc her; her = Hlp_GetNpc (hero);
var c_npc target; target = MEM_PtrToInst (her.focus_vob);
Wld_PlayEffect("spellFX_INCOVATION_White",target,target,0,0,DAM_MAGIC,FALSE);
Wld_PlayEffect("spellFX_BELIARSRAGE", target, target, 0, 0, DAM_MAGIC, FALSE);
B_MagicHurtNpc(slf, target, 700);
NPC_PlayAni(her,"T_EXCALIBUR_S1_2_Stand");
UltDone = FALSE;
};
Any help is appreciated!