Open main menu

UESPWiki β

GetCurrentAIPackage

                GetCurrentAIPackage

        Type:   AI

     Returns:   short (-1 to 4)
                        None     = -1
                        Wander   = 0
                        Travel   = 1
                        Escort   = 2
                        Follow   = 3
                        Activate = 4

     Example:   if ( GetCurrentAIPackage == 3 )
                set g_TempValue to "teruise girvayne"->GetCurrentAIPackage

     Scripts:   devalFollow
                FaluraScript

Returns a short value based on the current AIPackage the NPC is performing.

See Also: AIEscort, AIFollow, AITravel, AIWander, GetAIPackageDone