Morrowind Mod:GetCurrentAIPackage

A UESPWiki – Sua fonte de The Elder Scrolls desde 1995


GetCurrentAIPackage

                GetCurrentAIPackage

        Type:   AI

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

     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