Skip to content

tes3aiPackageWander⚓︎

Wander AI package causing an actor to move around at random. Actors will choose points to walk to based on the path grid of the cell they are in.

Idle nodes represent the percentage chance the actor will stand still and perform the particular idle animation. Each idle is checked, and the one that passes with the highest roll is played. If no Idle passes the random roll, the actor will move (walk).

This type inherits the following: tes3aiPackage

Properties⚓︎

activationTarget⚓︎

Returns:


destinationCell⚓︎

The destination cell for escort and follow AI packages. For wander package, this is the cell the actor wanders in.

Returns:


distance⚓︎

Determines the size of the area the actor with this wander AI package will walk around. Measured in the in-game units.

Returns:

  • result (number)

duration⚓︎

This property represents the duration of the AI package. It is present for wander, escort and follow AI packages. Measured in the in-game hours.

Returns:

  • result (number)

hourOfDay⚓︎

Returns:

  • result (number)

idles⚓︎

Read-only. This is a table with chances that the actor will play corresponding idle animation.

Index Animation description
1 Looking around
2 Looking behind
3 Scratching head and then shaking it
4 Shifting clothing or armor on shoulder
5 Yawn, strech, look around
6 Looks at fingers and then looks around furtively
7 Puts right fist above heart and bows head
8 Reaches for the weapon

Returns:


isDone⚓︎

Returns:

  • result (boolean)

isFinalized⚓︎

Returns:

  • result (boolean)

isMoving⚓︎

This property is true if the parent actor is moving.

Returns:

  • result (boolean)

isReset⚓︎

Returns:

  • result (boolean)

isStarted⚓︎

Returns:

  • result (boolean)

mobile⚓︎

Access to the actor to whom this AI package belongs.

Returns:


startGameHour⚓︎

The in-game hour at which this AI package started.

Returns:

  • result (number)

targetActor⚓︎

The target actor for activate, follow and escort AI packages.

Returns:


targetPosition⚓︎

The final position to be reached by the escort, follow, and travel AI packages.

Returns:


type⚓︎

Read-only. Maps to values in tes3.aiPackage namespace.

Returns: