Skip to content

"All Skate"

ZephiriusZephirius Member Posts: 411
edited May 2021 in Builders - Scripting
Just trying to get my "Guardian Jackal" to unfreeze from his statue pose and attack the PC. Simple right?
My Jackal attacks alright, but he "roller-skates" into action. Looks funny, but we can't have him roller skating around...
…I'm using VFX_IMP_FREEZE

I should add this just to show you...
effect eFreeze = EffectVisualEffect(VFX_IMP_FREEZE);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eFreeze, oTarget);
int nMaxHP = GetMaxHitPoints(); 
          int nCurHP = GetCurrentHitPoints(); 
          // if less than half of maximum
          if (nCurHP < (nMaxHP / 2))
          {

object oTarget;
oTarget = GetObjectByTag("GUARDIAN_JAKAL");

effect eEffect;
eEffect = GetFirstEffect(oTarget);

SetCommandable(TRUE, oTarget);

AssignCommand(oTarget, ClearAllActions());

while (GetIsEffectValid(eEffect))
   {
   if (GetEffectType(eEffect)==EFFECT_TYPE_VISUALEFFECT) RemoveEffect(oTarget, eEffect);
   eEffect = GetNextEffect(oTarget);
}

Thanks for any help.

Comments

  • ForSeriousForSerious Member Posts: 446
    Humm would EffectCutsceneParalyze() work better for you?
    Also, maybe adding a tag can help remove the right effect.
  • ZephiriusZephirius Member Posts: 411
    i tried CutsceneParalyze with some, let's say - interesting and unintended results. Gonna keep on trying though. I will repost if anything changes... :)
    ForSerious
Sign In or Register to comment.