Changed folder name.
Changed folder name.
This commit is contained in:
32
_module/nss/ew_ani_kneelout.nss
Normal file
32
_module/nss/ew_ani_kneelout.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
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));
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user