Morrowind Mod:OnMurder

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

OnMurder

                OnMurder

        Type:   Combat

     Returns:   short

     Example:   if ( OnMurder == 1 )

     Scripts:   alvisTeriScript
                RedoranCouncillor

Returns 1 for one frame when the actor is murdered (0 otherwise). Both this and OnDeath will return 1 at the same time, so you can do something like this:

        if ( OnDeath == 1 )
                if ( OnMurder == 1 )
                        Set RedoranMurdered to 2
                else
                        Set RedoranMurdered to 1
                endif
        endif

See Also: OnDeath, OnKnockout