Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

"All Skate"

ZephiriusZephirius Member Posts: 113
edited May 3 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

Sign In or Register to comment.