Class: ProjectileHitEntityAfterEvent
Contains information related to a projectile hitting an entity.
Constructors
new ProjectileHitEntityAfterEvent()
private
new ProjectileHitEntityAfterEvent():ProjectileHitEntityAfterEvent
Returns
Properties
dimension
readonly
dimension:Dimension
Remarks
Dimension where this projectile hit took place.
hitVector
readonly
hitVector:Vector3
Remarks
Direction vector of the projectile as it hit an entity.
location
readonly
location:Vector3
Remarks
Location where the projectile hit occurred.
projectile
readonly
projectile:Entity
Remarks
Entity for the projectile that hit an entity.
source?
optional
readonly
source:Entity
Remarks
Optional source entity that fired the projectile.
Methods
getEntityHit()
getEntityHit():
EntityHitInformation
Returns
Remarks
Contains additional information about an entity that was hit.
This function can't be called in read-only mode.