void DoDance(object oTarget); void main() { object oPC = GetPCSpeaker(); //Do the dance 3 times! DoDance(oPC); DelayCommand(23.0, DoDance(oPC)); DelayCommand(44.0, DoDance(oPC)); } void DoDance(object oTarget) { object oPC = oTarget; AssignCommand(oPC, ClearAllActions()); AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_BOW)); DelayCommand(2.0, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY3))); DelayCommand(4.0, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_TAUNT))); DelayCommand(6.0, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW, 1.0, 3.0))); DelayCommand(9.1, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY3))); DelayCommand(11.4, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_TALK_FORCEFUL, 1.0, 3.0))); DelayCommand(14.5, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_TALK_LAUGHING, 2.0, 3.0))); DelayCommand(17.6, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_DODGE_SIDE))); DelayCommand(18.2, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_DODGE_DUCK))); DelayCommand(19.2, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY3))); DelayCommand(21.3, AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_GREETING))); }