Open main menu

UESPWiki β

GetDetected

                GetDetected, ActorID

       Where:   ActorID = Target NPC used to check if the source actor can detect them.

        Type:   AI

     Returns:   short

     Example:   if ( GetDetected, "teres arothan" == 1 )
                if ( GetDetected, Player == 1 )

     Scripts:   jeanneScript
                nartiseGuards

Checks to see if the calling NPC can detect the given actor (returns 1 if it can). If not, then the given actor is invisible in some form (such as sneaking, chameleon, or invisibility). The TES help file says that this is a slow function that should not be called too often.