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

    Class ProjectileHitEntityAfterEvent

    Contains information related to a projectile hitting an entity.

    export class ProjectileHitEntityAfterEvent {
    private constructor();
    readonly dimension: Dimension;
    readonly hitVector: Vector3;
    readonly location: Vector3;
    readonly projectile: Entity;
    readonly source?: Entity;
    getEntityHit(): EntityHitInformation;
    }
    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