  /*
 *  Script generated by LS Script Generator, v.TK.0
 *
 *  For download info, please visit:
 *  http://nwvault.ign.com/View.php?view=Other.Detail&id=1502
 */
// Put this under "Actions Taken" in the conversation editor.


void main()
{
    object oTarget;
    object oSpawn;
    effect eVFX;

    // Get the PC who is in this conversation.
    object oPC = GetPCSpeaker();
    ActionPauseConversation();
    // Destroy an object (not fully effective until this script ends).
    AssignCommand(GetObjectByTag("DeadDragon"), SetIsDestroyable(TRUE, FALSE, FALSE));
    DestroyObject(GetObjectByTag("DeadDragon"));

    // Spawn "q_zomdrggreen001".
    eVFX = EffectVisualEffect(VFX_FNF_SUMMON_UNDEAD);
    oTarget = GetWaypointByTag("WP_ZombieDragon");
    oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "q_zomdrggreen001", GetLocation(oTarget));
    DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
    DelayCommand(3.0, ActionResumeConversation());
}

