Check out our 2024 Retrospective for a look back at events that shaped the wiki during 2024.

Morrowind Mod:GetCurrentAIPackage

The UESPWiki – Your source for The Elder Scrolls since 1995

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