Skip to content

tes3mobileProjectile⚓︎

A mobile object for a physical projectile.

This type inherits the following: tes3mobileObject

Properties⚓︎

animTime⚓︎

The time index for the projectile model's animation controllers.

Returns:

  • result (number)

attackSwing⚓︎

The attack swing value of the attacker at the time of releasing the projectile.

Returns:

  • result (number)

boundSize⚓︎

A vector that shows the size of the bounding box in each direction. Note that this is a convenience feature, and delivers the x and y values from boundSize2D with the z value of the mobile's height. Editing the values of the returned vector will not change the values that they came from, though setting the property itself will work.

Returns:


boundSize2D⚓︎

A vector that shows the size of the bounding box in X and Y directions. boundSize is a convenience property that exposes the bounding in 3 dimensions.

Returns:


cellX⚓︎

Read-only. The X grid coordinate of the cell the mobile is in.

Returns:

  • result (number)

cellY⚓︎

Read-only. The Y grid coordinate of the cell the mobile is in.

Returns:

  • result (number)

damage⚓︎

Access to the raw damage that this projectile will inflict.

Returns:

  • result (number)

expire⚓︎

A flag that causes the projectile to expire when set to 1.

Returns:

  • result (number)

firingMobile⚓︎

Read-only. The mobile that fired this projectile.

Returns:


firingWeapon⚓︎

Read-only. The weapon that fired this projectile.

Returns:


flags⚓︎

Access to the root mobile object flags, represented as an integer. Should not be accessed directly.

Returns:

  • result (integer)

height⚓︎

The height of the mobile above the ground.

Returns:

  • result (number)

impulseVelocity⚓︎

A vector that represents the 3D acceleration of the object.

Returns:


initialSpeed⚓︎

Read-only. The initial speed that the projectile was launched at.

Returns:

  • result (number)

inventory⚓︎

Read-only. Access to the items the mobile object has in its inventory.

Returns:


isAffectedByGravity⚓︎

If true, the mobile is affected by gravity. Does not have any effect on spell projectiles.

Returns:

  • result (boolean)

movementCollision⚓︎

Controls if the mobile has movement collision active. When false, the mobile can move through any object, but can still block other mobiles, and can still be hit in combat. Actors will still follow pathgrids, ramps and stairs when navigating.

Returns:

  • result (boolean)

movementFlags⚓︎

Access to the root mobile object movement flags, represented as an integer. Should not be accessed directly.

Returns:

  • result (integer)

objectType⚓︎

Read-only. The type of mobile object. Maps to values in tes3.objectType namespace.

Returns:


playerDistance⚓︎

The distance to the player. Updated every frame when the mobile is in an active cell.

Returns:

  • result (number)

position⚓︎

A vector that represents the 3D position of the object.

Returns:


prevMovementFlags⚓︎

Access to the root mobile object movement flags from the previous frame, represented as an integer. Should not be accessed directly.

Returns:

  • result (integer)

reference⚓︎

Read-only. Access to the reference object for the mobile, if any.

Returns:


spellInstance⚓︎

A quick access to tes3magicSourceInstance object of this tes3mobileProjectile if aplicable.

Returns:


velocity⚓︎

Access to the current velocity of the projectile.

Returns: