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


                GetTarget, ActorID

       Where:   ActorID = NPC ID to check against the source actor's current target.

        Type:   Combat

     Returns:   short

     Example:   if ( GetTarget, "taren andoren" == 1 )
                if ( GetTarget Player == 1 )

     Scripts:   nartiseGuards

Returns 1 if the target of the NPC is the given actor. Returns 0 otherwise.