Battledale_PRC8/_module/nss/ew_ani_kneelout.nss

33 lines
809 B
Plaintext
Raw Permalink Normal View History

void main()
{
object oTarget = OBJECT_SELF;
//-- reset routine to string anims
//-- note, will remove all vfx!
SetCommandable(TRUE, oTarget);
AssignCommand(oTarget, ClearAllActions());
effect eFX = GetFirstEffect(oTarget);
while (GetIsEffectValid(eFX))
{
if(GetEffectType(eFX) == EFFECT_TYPE_VISUALEFFECT)
{
RemoveEffect(oTarget, eFX);
}
eFX = GetNextEffect(oTarget);
}
//-- anim started and frozen. target frozen (not commandable)
effect eFreeze = EffectVisualEffect(VFX_DUR_FREEZE_ANIMATION);
AssignCommand(oTarget, ClearAllActions());
AssignCommand(oTarget, PlayAnimation(ANIMATION_LOOPING_WORSHIP, 2.0, 6.0));
DelayCommand(1.5, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eFreeze, oTarget));
//DelayCommand(1.8, SetCommandable(FALSE, oTarget));
}