NPC

Removes current NPC executed from script

Note

Despite the poor naming choice, NPC kill does not actually kill the NPC, but removes it instantly from the game.

Syntax

NPC kill,[fade out time] -- Kills NPC with time waiting for fading out

Example


// This will remove the NPC after 1 second after execution
xpt_KillMyself
{
    actions
    {
        Wait 1
        NPC kill
    }
}

// This will make the NPC fade out in 2.5 seconds
xpt_Disappear
{
    actions
    {
        NPC kill,2.5
    }
}