Script API - v1.21.100
    Preparing search index...

    Class ProjectileHitEntityAfterEvent

    Contains information related to a projectile hitting an entity.

    Index

    Constructors

    Properties

    dimension: Dimension

    Dimension where this projectile hit took place.

    This property can't be read in early-execution mode.

    hitVector: Vector3

    Direction vector of the projectile as it hit an entity.

    This property can't be read in early-execution mode.

    location: Vector3

    Location where the projectile hit occurred.

    This property can't be read in early-execution mode.

    projectile: Entity

    Entity for the projectile that hit an entity.

    This property can't be read in early-execution mode.

    source?: Entity

    Optional source entity that fired the projectile.

    This property can't be read in early-execution mode.

    Methods

    • Returns EntityHitInformation

      Contains additional information about an entity that was hit.

      This function can't be called in read-only mode.

      This function can't be called in early-execution mode.